permutation
10 views (last 30 days)
Show older comments
i use the command a=perms([1,2,3,4]) ; and then may i have b11= 1,2 and b12= 3,4 b21=1,3 and b22 =2,4 b31=1,4 and b32= 2,3 plz explaine to me ??? thz for all
0 Comments
Answers (2)
Andrei Bobrov
on 16 Apr 2012
nchoosek(1:4,2)
ON ko thant's answer
eg:
t = nchoosek(1:6,3);
p = 2;
A = t*[1;p;p^2];
A = reshape(A,[],2);
A = [A(:,1) A(end:-1:1,2)];
See Also
Categories
Find more on Software Development Tools in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!