how to access workspace variablle in loop?
3 次查看(过去 30 天)
显示 更早的评论
i have workspace variable and want to use it in for loop
0 个评论
回答(2 个)
ES
2014-1-22
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?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!