save data from all loop iterations
显示 更早的评论
for I=1:10 //calculation for j=1:10 //calculation end end I want to save all the data because the saving method that I used it give my the last result only. Can anyone help my?
1 个评论
Stephen23
2018-4-20
Use indexing. How to use loops and indexing is explained in the introductory tutorials:
https://www.mathworks.com/help/matlab/getting-started-with-matlab.html
回答(1 个)
Birdman
2018-4-20
0 个投票
You need to read about for loop and subscripting.
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!