How to make variables in a while loop be an array
Afficher commentaires plus anciens
Could anybody help me with this please? I am trying to work out a optimisation problem. I am using a while loop. I am able to obtain results in an array e.g. result(n).however, I am not able to make variable "n" as an array,hence, the value that I can access is always the last n value appeared. I would like to know how to make the variables into an array form that I can access the optimal result,aslo the corresponding variable "n" value.
3 commentaires
Fangjun Jiang
le 2 Nov 2011
The question is vague. Can you provide a simple example?
zhe li
le 2 Nov 2011
zhe li
le 2 Nov 2011
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!