对变量名构造循环。
16 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
你好,我有一个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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su MuPAD in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!