for loop append variable
6 ビュー (過去 30 日間)
古いコメントを表示
i'd like to append variable n0 to n1
but this code made just last variable
Thanks!
leng=length(list)
n0=[]
for i=1:leng
nl=list(i).name
end
6 件のコメント
Stephen23
2022 年 2 月 18 日
That is why I showed you this approach:
{list.name}.'
Much simpler than a loop.
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!