File: test_write_cell_2d_numeric.m

package info (click to toggle)
libmatio 1.5.30-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,656 kB
  • sloc: sh: 126,066; ansic: 22,630; makefile: 647; python: 215
file content (19 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
try
    load test_write_cell_2d_numeric.mat
    expdata = {cast(reshape((1:12),3,4),type);cast(reshape((13:24),3,4),type);...
               cast(reshape((25:36),3,4),type);cast(reshape((37:48),3,4),type);};
    pass = true;
    pass = pass && isequal(a,expdata(:));
    pass = pass && strcmp(class(a{1}),class(expdata{1}));
    pass = pass && strcmp(class(a{2}),class(expdata{2}));
    pass = pass && strcmp(class(a{3}),class(expdata{3}));
    pass = pass && strcmp(class(a{4}),class(expdata{4}));
catch me
    pass = false;
end
if pass
    fprintf('PASSED\n');
else
    fprintf('FAILED\n');
end
exit;