如何使用cat函数在MATLAB构造三维数组?

如何使用cat函数在MATLAB构造三维数组?

用eval

A = [];

for i = 1:100

eval( ['cat(3, A, A' num2str(i) ');' ]);

end