Mercurial > hg > ltpda
comparison m-toolbox/test/test_cdata_matrix.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 function test_cdata_matrix() | |
2 | |
3 % TEST_CDATA_MATRIX tests matrix read/write from XML for cdata class. | |
4 % | |
5 % | |
6 % M Hewitson 23-05-07 | |
7 % | |
8 % $Id: test_cdata_matrix.m,v 1.4 2008/09/19 14:03:50 ingo Exp $ | |
9 % | |
10 | |
11 | |
12 a = ao(rand(10,10)) | |
13 c = select(a, sub2ind(size(a.data.y), 1:10 , 1:10)) | |
14 c.data | |
15 | |
16 return | |
17 | |
18 save(a, 'ltpda_cmat.xml'); | |
19 | |
20 b = ao('ltpda_cmat.xml'); | |
21 | |
22 | |
23 %% | |
24 c = a.*b | |
25 | |
26 delete('ltpda_cmat.xml'); | |
27 | |
28 % END |