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!