After using nchoosek function, how can i create variables for each answer?

1 回表示 (過去 30 日間)
Simon
Simon 2013 年 5 月 24 日
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

採用された回答

Sean de Wolski
Sean de Wolski 2013 年 5 月 24 日
  5 件のコメント
Simon
Simon 2013 年 5 月 24 日
each cell contains 524 historical data of one particular index, that's why i don't use the whole 15x4 matrix
Sean de Wolski
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 ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by