210928-Matlab读取文件夹及.nii格式
作者:互联网
自己时常花费较多时间用于寻找及回忆命令上,不应该,因此做些记录,更快的恢复记忆。
% read the whole files
patient_paths='patient_paths';
patient_names=dir(patient_paths);
for ii=3:length(patient_names) % start from 3
patient_name=patient_names(ii).name;
patient_path=fullfile(patient_paths,patient_name);
% read the files end with '.nii'
patient_paths='patient_paths';
patient_names=dir([patient_paths, '/*.nii']);
for ii=1:length(patient_names) % start from 1
patient_name=patient_names(ii).name;
patient_path=fullfile(patient_paths,patient_name);
标签:paths,nii,patient,name,210928,ii,Matlab,names 来源: https://blog.csdn.net/csdnxiekai/article/details/120522976