Unzipping multiple folders to access one compressed file within the folder.
2 ビュー (過去 30 日間)
I have downloaded ~750 T1 weighted images. All of these files are .zip currently, within these files there are multiple T1 images (at various stages of pre processing) - but, I only want the T1 raw image (to preprocess manually myself). However, once you unzip the file, the participant ID is no longer associated (the zipped file is PIDXXXX1.zip, but once it is unzipped they all just become 'T1').
Is there any way I can unzip the main folder, maintain the name of the zipped folder, select the appropriate file and then decompress it from .nii.gz to just .nii with code in the MATLAB terminal?
I assume the answer is no as all the code I've attempted simply does not work.
Any help would be appreciated :)