After using nchoosek function, how can i create variables for each answer?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Sean de Wolski
2013 年 5 月 24 日
5 件のコメント
Sean de Wolski
2013 年 5 月 28 日
So index into it. To get the fourth row:
X(4,:)
This is much easier and much better than creating X4.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!