参考官方 教程 :
https://ww2.mathworks.cn/help/matlab/ref/string.html
方法很多,只讲述我用的方法。假设需要创建m×nm \times nm×n维字符串矩阵。
a=zeros(m,n);
a_string=string(a);
Num=8;
filename=string(zeros(1,Num));
for i=1:Num
filename(i)="DFIG_2011_03_0"+i;
end
输出如下:
The end.The \ end.The end.
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删