Filter löschen
Filter löschen

Loop For & save result

1 Ansicht (letzte 30 Tage)
Marwen Tarhouni
Marwen Tarhouni am 30 Dez. 2016
Kommentiert: Image Analyst am 30 Dez. 2016
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

Akzeptierte Antwort

Ahmed raafat
Ahmed raafat am 30 Dez. 2016
for i=1:50
result(i)= %if equation
result{i}= % if strings
end
  2 Kommentare
Marwen Tarhouni
Marwen Tarhouni am 30 Dez. 2016
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 am 30 Dez. 2016
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by