% loading a protocol prt = xff('*.prt'); % creating an SDM with % - 240 volumes, % - a TR of 2000 msec, and % - no rest condition in the PRT sdm = prt.CreateSDM(struct('nvol', 240, 'prtr', 2000, 'rcond', [])); % save under same filename with .sdm extension sdm.SaveAs(strrep(prt.FilenameOnDisk, '.prt', '.sdm'));