save data from all loop iterations

조회 수: 3 (최근 30일)
Ahmed Alshehhi
Ahmed Alshehhi 2018년 4월 20일
댓글: Stephen23 2018년 4월 20일
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
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
Birdman 2018년 4월 20일

You need to read about for loop and subscripting.

https://www.mathworks.com/help/matlab/ref/for.html

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by