Hi Raunak

you should be able to use gunzip to unzip it outside of matlab and give 
it the extension .mgh instead of .mgz, then everything should work fine. 
I'm not sure why zcat isn't working but this should be a reasonable 
work-around

cheers
Bruce
On 
Tue, 16 Dec 2014, Raunak Mundada wrote:

> Hi
> I have been trying to load .mgz file that is generated after the recon -all
> process into MATLAB using load_mgh.m but have been unable to do so.
> ERROR - ' 'zcat' is not recognized as an internal or external command,
> operable program or batch file.
> SWITCH expression must be a scalar or string constant.
>
> Error in load_mgh (line 126)
> switch type '
>
> I think it is unable to read the unzipped file but I am unable to figure out
> why. I am trying to read the file 'left_hippocampus.mgz' so that I can
> access the voxel intensities of the segmented part. What could be the
> problem and the possible solution? Running the code on a windows machine. Is
> there any other suggestion/better way to access the voxel intensities using
> MATLAB?
>
> Regards,
> - Raunak Mundada
> Quantitative Analyst
> AlgoAnalytics, Pune(India)
> +91 9922750046
> www.algoanalytics.com
>
>
>
> ---
> This email is free from viruses and malware because avast! Antivirus 
> protection is active.
> http://www.avast.com
>
> _______________________________________________
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
>
>
_______________________________________________
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.

Reply via email to