How to display Numbers of stacking sequence using permutations an combinations. in this case i have 6840 permutations and 1140 combinations. perms(a) command returning error
Ältere Kommentare anzeigen
a=[45 45 45 45 45 45 0 0 0 0 0 0 0 0 -45 -45 -45 -45 -45 -45];
% No. of angle =20;
% No. of sub angle =3 Means (45 0 -45)
% 6840 permutations
% 1140 combinations
perms(a);
command is returning error
2 Kommentare
Marzi
am 30 Okt. 2015
perms(v) is practical when length(v) is less than about 10.
John D'Errico
am 31 Okt. 2015
Please edit your question to give a better idea of what you need. Do not just keep adding new questions on the same topic.
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 30 Okt. 2015
0 Stimmen
When you want the number of them, you should be using nchoosek(). perms() is for listing permutations.
2 Kommentare
Triveni
am 31 Okt. 2015
Walter Roberson
am 31 Okt. 2015
Your question asked about displaying the number of items. perms() never tells you the number,it is only for listing all of the permutations.
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!