syntax help--creating file path
显示 更早的评论
Hi,
I am having trouble specifying a file path to a changing directory/set of files within a for loop. The path as it is now is below:
inputs{1, crun} = cellstr(spm_select('FPList'[allinput,'MOVr1',filesep,Order{crun,1}],'^raf.*\.img$'));
Along with possible bracket/parentheses issues, I am thinking the problem is with how to incorporate Order{crun,1}, which is the reference to the changing variable within the path. Order{crun,1} is supposed to refer to variables in the first column of a previously loaded file, Order.mat, which specifies a list of subject folders in the path. With this path, I am trying to switch the subject folder with each iteration of the loop based on the column of variables, but am not sure how to get that to work.
Any suggestions would be very appreciated!
Thanks,
Victoria
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Filename Construction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!