Skip to content
Permalink
fc517f15b1
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (7 sloc) 180 Bytes
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