1. You should take a look at parameters files: acqp, method. (text file) these files contain all image parameters that suitable for you. 2. I found that your image is 2D based on: - method file: ##$PVM_Matrix=( 2 ) 128 128 So your image data size should be: 128x128 (complex or real you should check on method file or reco file)
A=fread(f1,'int16'); % if complex data, do three following lines RealI = A(1:2:end); ImgI = A(2:2:end); cmplxImage = complex(RealI, ImgI);
Then you just reshape that variable to correct image dimension...
ps: your image is T1-weighted image, not diffusion image, so you do not need a variable like num_dif (number of diffusions)