Placing the ouputs of while loop in an array
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Harshit
2012 年 11 月 19 日
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 件のコメント
参考
カテゴリ
Help Center および 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!