comparison m-toolbox/test/xml_tests/test_timespan.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 t1 = time();
4 t2 = t1 + 100;
5
6 t1 = timespan(t1, t2);
7
8 xmlfile = 'timespan.xml';
9 save(t1, xmlfile)
10
11 % load
12 t2 = timespan(xmlfile);
13
14 if t1 ~= t2
15 error('### timespans are not the same')
16 end