After using nchoosek function, how can i create variables for each answer?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Title says it all mostly. I created a matrix of 15x4 as a result of nchoosek (that gave me 15 answers) and i would like to be able to make 15 new variables; one for each answer (combination). Thank you in advance
0 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 24 Mai 2013
5 Kommentare
Sean de Wolski
am 28 Mai 2013
So index into it. To get the fourth row:
X(4,:)
This is much easier and much better than creating X4.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!