Placing the ouputs of while loop in an array
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I don't necessarily have a code written, yet but I was just wondering how I could take the outputs(all iterations) of a while loop and return a vector with the outputs.
Thanks.
0 Kommentare
Antworten (1)
Harshit
am 19 Nov. 2012
What is the problem. Start putting them as soon as they are generated.
if true
index = 0
a(index)=output
index = index+1
end
2 Kommentare
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!