Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 Matlab 中创建具有不同大小的矩阵数组。例如
Array_Mat(:,:,1) = zeros(3); Array_Mat(:,:,2) = zeros(4);
这给出了错误。那我如何制作矩阵数组?
你可以使用细胞。
>> a{1}=[1 2 ;3 4] a = [2x2 double] >> a{2}=zeros(4) a = [2x2 double] [4x4 double] >> a{1}(2,1) ans = 3 >> a{2}(3,4) ans = 0