Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
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

Réponse acceptée

Sean de Wolski
Sean de Wolski le 24 Mai 2013
  5 commentaires
Simon
Simon le 24 Mai 2013
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 le 28 Mai 2013
So index into it. To get the fourth row:
X(4,:)
This is much easier and much better than creating X4.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by