Does anyone know how to place 12 mri images into the same matrix size and shape as D in the .mat file MRI?
Any help is greatly appreciated.
No products are associated with this question.
The default MRI sample has singleton dimension right?
% given I1,.............,I12 [m n]=size(I1); M=zeros(m,n,12); M(:,:,1)=I1; %.... M(:,:,12)=I12; D=zeros(m,n,1,12); for n=1:12 D(:,:,:,n)=M(:,:,n); end save Neoplasm_MRI D