File: test_write_cell_empty_struct.m

package info (click to toggle)
libmatio 1.5.29-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,648 kB
  • sloc: sh: 126,066; ansic: 22,606; makefile: 646; python: 215
file content (15 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
try
    load test_write_cell_empty_struct.mat
    expdata{1,1} = struct('field1',[51.,52.;53.,54.],'field2',[],'field3',[]);
    expdata{1,2} = expdata{1,1};
    expdata{1,3} = expdata{1,1};
    pass = isequal(var1,expdata);
catch me
    pass = false;
end
if pass
    fprintf('PASSED\n');
else
    fprintf('FAILED\n');
end
exit;