Info
此问题已关闭。 请重新打开它进行编辑或回答。
The elements in each column is the same every time I execute it. The elements in each column need to be randomly generated for every execution without repetition with other columns.
1 次查看(过去 30 天)
显示 更早的评论
if true
k=3;
n=5;
m=(2*k)-2;
n1=k-1;
N=(factorial(m))/(factorial(n1)*factorial(n1));
o = ones(k-1,1) ;
z = zeros(k-1,1) ;
a1 = [o ; z];
v = a1' ;
C = unique(perms(v),'rows') ;
C=C'
end
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!