Saving a result of each loop´into a new vector
3 ビュー (過去 30 日間)
古いコメントを表示
Hi, I have a looping where a modulation is done and I need to save (or allocate) the results of each loop into a new collumn vector. How this could be done in matlab ,as each loop has a different results for this modulation .
Thanks
luiz
0 件のコメント
採用された回答
Sean de Wolski
2011 年 6 月 21 日
A = zeros(length_of_column,number_of_vectors)
for ii = 1:number_of_vectors
a_result = some_function(stuff(ii));
A(:,ii) = a_result(:);
end
0 件のコメント
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!