I am running sd_display with the following settings (amongst other things)
settings.slice.disp_slices = -30:3:50;
And getting the following error:
Index exceeds matrix dimensions.
Error in sd_display (line 68)
xyzmm = [x(:)';y(:)';ones(1,nvox)*zmm(i_slice);ones(1,nvox)];
This seems to be due not finding any slices that correspond to my request in sd_get_image_specs
|
zmm = slices(ismembertol(slices,settings.slice.disp_slices)); |
>> zmm = slices(ismembertol(slices,settings.slice.disp_slices))
zmm =
1×0 empty double row vector
with
slices =
Columns 1 through 11
-78.5000 -75.5000 -72.5000 -69.5000 -66.5000 -63.5000 -60.5000 -57.5000 -54.5000 -51.5000 -48.5000
Columns 12 through 22
-45.5000 -42.5000 -39.5000 -36.5000 -33.5000 -30.5000 -27.5000 -24.5000 -21.5000 -18.5000 -15.5000
Columns 23 through 33
-12.5000 -9.5000 -6.5000 -3.5000 -0.5000 2.5000 5.5000 8.5000 11.5000 14.5000 17.5000
Columns 34 through 44
20.5000 23.5000 26.5000 29.5000 32.5000 35.5000 38.5000 41.5000 44.5000 47.5000 50.5000
Columns 45 through 55
53.5000 56.5000 59.5000 62.5000 65.5000 68.5000 71.5000 74.5000 77.5000 80.5000 83.5000
Columns 56 through 65
86.5000 89.5000 92.5000 95.5000 98.5000 101.5000 104.5000 107.5000 110.5000 113.5000
I am running sd_display with the following settings (amongst other things)
And getting the following error:
This seems to be due not finding any slices that correspond to my request in
sd_get_image_specsslice_display/sd_get_image_specs.m
Line 71 in 4326779
with