fn = fieldnames(info.ROIcontour1);
fn = fn(strncmp(fn,'Slice',5));
nf = length(fn);
contourslices = cell(nf,1);
for K = 1 : nf
countourslices{K} = info.ROIcontour1.(fn{K}).contourdata;
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!