不需要转换,直接用变量名输出即可:
a=[];
for i=1:5
for j=1:3
a(i,j)=i+j;
end
a
-----------------运行结果:
http://www.ilovematlab.cn/thread-63119-1-1.html上面有很多大神