I am running for loop for 10 times, each time I am getting op as a matrix of size 1*4. I want to store each op so that i will get 10 * 4 matrix?
1 回表示 (過去 30 日間)
古いコメントを表示
I am doing in simulink. my for loop output is S function output. how to do that? please help?
0 件のコメント
回答 (1 件)
Marco Wassmer
2016 年 10 月 3 日
You could do it like this:
S=[];
dummy=1:1:4;
for n=1:1:10
S(n,:)=dummy;
end
Where dummy is your data and S your result
0 件のコメント
参考
カテゴリ
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!