Friday 15 March 2013

multidimensional array - MATLAB Insert matrix into 3D matrix -


I have 1437X159X1251 large matrix and I want to insert a 1437x15 9 matrix between the larger matrix, to which the larger matrix 1437x15 9x1252 How do I have to do this? A

For horizontal or vertical combination of matrix / vector Code> and b , you can use

 % vertical [A; B]; % Horizontal [A, B]; % Alternate is optional: [ABC]; There is no such sign for the dimension  third . Using the normalized combination in the matrix A = rand (1437, 159) in the example  arbitrary  dimension  cat () :  
 % example Will, 1251); B = RAND (1437, 159); % Insertion point N = 384; How to do it a = cat (3, a (:,::, 1: n), b, a (:,:, n + 1: end));    

No comments:

Post a Comment