What you want to do is to use the loft command, but it's not simple or easy. Refer to the 3.5a Matlab Interface document and go to page102 for the "Images, Interpolation, and MRI Data"
On page 105, COMSOL gives an example using the built in MRI data that comes with MATLAB. If you try this, … Read more