19
25
for ks = 1:length (ss)
21
27
fprintf ('\n-----------------------------------------------\n') ;
29
35
fprintf ('\nA1 = sparse (i,j,s,m,n)\n') ;
30
36
try % sparse, possibly with invalid inputs
31
A1 = sparse (i,j,s,m,n)
37
A1 = sparse (i,j,s,m,n) %#ok
32
38
fprintf ('size A1: %d %d\n', size (A1)) ;
34
41
fprintf ('sparse failed\n') ;
37
44
fprintf ('\nA2 = sparse2 (i,j,s,m,n)\n') ;
38
45
try % sparse2, possibly with invalid inputs
39
A2 = sparse2 (i,j,s,m,n)
46
A2 = sparse2 (i,j,s,m,n) %#ok
40
47
fprintf ('size A2: %d %d\n', size (A2)) ;
42
50
fprintf ('sparse2 failed\n') ;
45
53
fprintf ('\nB1 = sparse (i,j,s)\n') ;
46
54
try % sparse, possibly with invalid inputs
55
B1 = sparse (i,j,s) %#ok
48
56
fprintf ('size B1: %d %d\n', size (B1)) ;
50
59
fprintf ('sparse failed\n') ;
53
62
fprintf ('\nB2 = sparse2 (i,j,s)\n') ;
54
63
try % sparse2, possibly with invalid inputs
64
B2 = sparse2 (i,j,s) %#ok
56
65
fprintf ('size B2: %d %d\n', size (B2)) ;
58
68
fprintf ('sparse2 failed\n') ;