matlab - Separating then stacking 3D mat files -


so have large amount of 2d mat files need stack, of files saved in 3d, i.e. 1024*1024*2. i'm struggling write while loop separate 3d files , stack them while stacking normal 2d files.

function ndims(matrix) give dimension of matrix so, 3 dimensional ones can do:

if ndims(a)==3    a=[a(:,:,1);a(:,:,2)] % stack 2 layers of matrix vertically end 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -