Resetting arrays

19 vues (au cours des 30 derniers jours)
Amarpal
Amarpal le 5 Fév 2011
Is there any way a vector/matrix that is initialized in an iterative program be reset, so that MATLAB doesn't recognize it in the next iteration even after it has been evaluated in a previous iteration, so that it could be resized depending upon the value of a parameter evaluated at runtime during every iteration.

Réponse acceptée

Walter Roberson
Walter Roberson le 5 Fév 2011
Ummm, like
clear VariableName

Plus de réponses (1)

Amarpal
Amarpal le 6 Fév 2011
Thanks a lot. New to MATLAB :)

Catégories

En savoir plus sur Problem-Based Optimization Setup 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