Unzipping multiple folders to access one compressed file within the folder.

3 ビュー (過去 30 日間)
Megan
Megan 2023 年 6 月 1 日
回答済み: Image Analyst 2023 年 6 月 1 日
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 :)

回答 (1 件)

Image Analyst
Image Analyst 2023 年 6 月 1 日

カテゴリ

Help Center および File ExchangeMRI についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by