How to create larger matrix within a loop?
이전 댓글 표시
I have the code below, I need to create a matrix with all DATA values in the rows
(DATA_new=[DATA;DATA;....] but the problem is that the MATLAB save the last value
of DATA. I don't know how I can have a bigger matrix with all DATA vectors! Does
anyone know that?
for m=0:11;
m=m+1;
for n=1:15;
DATA =[m,n]
end
end
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 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!