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!