Resetting arrays

15 visualizzazioni (ultimi 30 giorni)
Amarpal
Amarpal il 5 Feb 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.

Risposta accettata

Walter Roberson
Walter Roberson il 5 Feb 2011
Ummm, like
clear VariableName

Più risposte (1)

Amarpal
Amarpal il 6 Feb 2011
Thanks a lot. New to MATLAB :)

Categorie

Scopri di più su Problem-Based Optimization Setup in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by