accessing each item in one workspace variable
1 次查看(过去 30 天)
显示 更早的评论
hi everyone
i have a code results in workspace, one of the variables name A has 6000 items , i need to go through each item in A , in order to use it in a mathmetical equation how can I do that
please help
1 个评论
Rik
2021-12-17
What exactly do you mean? Do you mean you have a vector called A:
A=rand(1,6)
Or do you mean you have 6000 variables whose name starts with A:
A1=rand,A2=rand,A3=rand,A4=rand,A5=rand,A6=rand
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!