Try pulling out the matrix and saving as version 4, something like M = HDR.M; save('subject.mat','M','-v4')
doug SG KIM wrote: > I want to import anlayze75 with a right direction (still). > > I have those files: > > subject.hdr > subject.img > > > And got warnings as: > -------------------------- > INFO: could not find ~/subject.mat file for direction cosine info. > INFO: use Analyze 7.5 hdr->hist.orient value: 0, transverse unflipped > (default). > INFO: if not valid, please provide the information in ~/subject.mat file > -------------------------- > > I know the orientation info should be provided somehow; but I don't > know how to do it. > > I just tried to make a corresponding MAT file containing header info > by simply saving whole header info as > > >>> HRD=analyze75info('subject.hdr'); >>> save subject.mat HDR >>> > > But I got another error as > ----------- > unsupported matlab format 262149 (unknown) > MatrixMultiply: m1 cols 1 does not match m2 rows 4 > Segmentation fault > ----------- > > *Does someone who handled Analyze75 format before know how to create a > corresponding MAT file?* > > SG. > > +I firstly tried import without MAT file, then I worked but with a > wrong direction (fig1). > I checked the header file. > It says 'Transverse unflipped' as default, which is also perplexing > because the import was made using the default orientation 'Transverse > unflipped' anyway. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > _______________________________________________ > Freesurfer mailing list > Freesurfer@nmr.mgh.harvard.edu > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer -- Douglas N. Greve, Ph.D. MGH-NMR Center gr...@nmr.mgh.harvard.edu Phone Number: 617-724-2358 Fax: 617-726-7422 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting FileDrop: www.nmr.mgh.harvard.edu/facility/filedrop/index.html _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.