how to access workspace variablle in loop?

5 visualizzazioni (ultimi 30 giorni)
mausam
mausam il 22 Gen 2014
Risposto: Walter Roberson il 22 Gen 2014
i have workspace variable and want to use it in for loop

Risposte (2)

ES
ES il 22 Gen 2014
If it is an m script, you can use the workspace variable directly by calling its name.
if it is an m function, then prior to calling the function, save the variables in a matfile and load it in your function.
By the way, who generates the variables in the workspace?

Walter Roberson
Walter Roberson il 22 Gen 2014

Categorie

Scopri di più su Loops and Conditional Statements 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