Saving the output of a loop into a matrix or a vector
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
How can we save the output of a loop when it is a series of matrices
Thank you,
0 commentaires
Réponse acceptée
Stephen23
le 25 Avr 2015
Modifié(e) : Stephen23
le 19 Juin 2019
2 commentaires
Stephen23
le 26 Avr 2015
Modifié(e) : Stephen23
le 3 Juin 2015
Sorry, I do not use sym, so I have no advice on that. Mixing data (your "states") and the variables' names is what is not recommended, as should be clear from those links.
- You could create a separate (cell?) array to store those states and whose columns correspond to the columns of the data matrix. This would be a typical and easy MATLAB solution.
- You might find that using a table suits your needs better than a simple matrix.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!