how to access workspace variablle in loop?

Answers (2)

ES
ES on 22 Jan 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?

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

on 22 Jan 2014

Answered:

on 22 Jan 2014

Community Treasure Hunt

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

Start Hunting!