I'm learning MATLAB +SPM12 to do structural MRI analysis. To do this, I need to change the format of the files from gz to NIFTI. The guide I'm using said to use
gunzip('*.gz')
Flanker=gunzip('*.gz')
Dot indexing is not supported for variables of this type.
Error in gunzip (line 71)
destinationIsSameAsSource = ismember(fullfile({entries.file}), fullfile(rootDir,outputDir,files));
I tried many different fixes from a google search
gunzip('sub-08.gz')
gunzip('sub-08.gz')
>> gunzip('sub-08', '*.gz')
unzip('sub-08_T1w.nii.gz','Sub-08')`
None of these worked for various reasons sub-08 is the name of the folder trying to unzip.