对变量名构造循环。
이전 댓글 표시
你好,我有一个for循环,想让循环的内容加入到变量名中,请问怎么实现?
比如
for i=1:3
%name=['DOY_',num2str(utc,'%02d')]; name=intersect(x_real1,x_real);
save('out.mat','name’);
end
怎么让这里的name变成 DOY_01 DOY_02 DOY_03? 谢谢
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MuPAD에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!