comparison m-toolbox/test/xml_tests/test_history.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 clear all;
2
3 a1 = ao(plist('waveform', 'sine wave', 'f', 1, 'phi', 0, 'nsecs', 10, 'fs', 100));
4 a2 = ao(plist('waveform', 'sine wave', 'f', 1, 'phi', 0, 'nsecs', 10, 'fs', 100));
5 a3 = a1 + a2;
6
7 c1 = a3.hist;
8
9 xmlfile = 'history.xml';
10 save(c1, xmlfile);
11
12 % load
13 c2 = history(xmlfile);
14
15 if c1 ~= c2(1)
16 error('### history are not the same')
17 end
18
19