对变量名构造循环。
显示 更早的评论
你好,我有一个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!