view m-toolbox/test/test_mtimes.m @ 52:daf4eab1a51e
database-connection-manager tip
Fix. Default password should be [] not an empty string
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Wed, 07 Dec 2011 17:29:47 +0100 (2011-12-07)
parents
f0afece42f48
children
line source
+ − function test_mtimes()
+ − % A test script for the AO mtimes.
+ − %
+ − % M Hewitson 16-03-07
+ − %
+ − % $Id: test_mtimes.m,v 1.3 2008/09/19 14:03:50 ingo Exp $
+ − %
+ −
+ − %% make test data files
+ − make_test_ascii_file('data1', 1, 1000);
+ − make_test_ascii_file('data2', 1, 1000);
+ −
+ − %% Load data into analysis objects
+ −
+ − a1 = ao(randn(123,1),12);
+ − a2 = a1.';
+ −
+ −
+ − %% add and plot
+ − a3 = a2*a1
+ − a3.data
+ −
+ − iplot(a3)
+ − plot(a3.hist)
+ −
+ −
+ − %% Reproduce from history
+ −
+ − % Write an m-file from AO
+ − ao2m(a3, 'test.m');
+ −
+ − %% now run it
+ − clear
+ − a1 = test
+ −
+ − iplot(a1)
+ − plot(a1.hist)
+ −
+ − delete('test.m')