필터 지우기
필터 지우기

Loop For & save result

조회 수: 1 (최근 30일)
Marwen Tarhouni
Marwen Tarhouni 2016년 12월 30일
댓글: Image Analyst 2016년 12월 30일
Hello,
I want to run an algorithm 50 times using the for loop. I want to save the results after each iteration ie
-for i = 1 save result
-for i = 2 save result
:
:
-for i = 50 save result
For
Algorithme
end
do you have an idea

채택된 답변

Ahmed raafat
Ahmed raafat 2016년 12월 30일
for i=1:50
result(i)= %if equation
result{i}= % if strings
end
  댓글 수: 2
Marwen Tarhouni
Marwen Tarhouni 2016년 12월 30일
result(i)=all algorithme
The execution of this algorithm shows me several matrices
I find the last matrix (fori=50) only in the workspace
Image Analyst
Image Analyst 2016년 12월 30일
You accepted this so it's all working right? Or not? I can't tell.
Please attach your m-file with the paper clip icon if you still need help.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by