Organizing 2D matrices of unequal column length into single 3D array
5 views (last 30 days)
I am trying to arrange my 2D matrix data of unequal coulumn length as a 3D array. I can do it for equal length matrices but requires help for unequal matrices. I used the following code for equal lengths but can anyone help in modifying this code for arranging 2D matrices of unequal length into 3D array. The empty elements may taken as NaN.
% Let Num of 2D arrays
my2Darray = [I,V];
my3Darray(:,:,ind) = my2Darray;