Skip to content

Commit

Permalink
Create testarrays
Browse files Browse the repository at this point in the history
  • Loading branch information
chv14004 committed Mar 28, 2017
1 parent a7de8d2 commit ab218d7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions testarrays
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
rand("seed",1);

for i = 3:10
e=sort(randi(6,[i-1,1]));
f=sort(randi(10,[i,1]));
g=sort(randi(9,[i-1,1]));
eval(['A',int2str(i),'=diag(f)+diag(e,-1)+diag(g,1);']);
end

0 comments on commit ab218d7

Please sign in to comment.