I have n dxd matrices in Matlab and I want to add them to get a Dxdxn matrix where (:,: , I) i ^ th matrix (i = 1..n) is i how can i do this?
use
outside = cat 3, mat1, mat2 , Mat3, ..., Matn); If arrays are elements of a cell array,
outside = cat (3, cellar {:});
Comments
Post a Comment