Improper Index Matrix - what is going on?

1 view (last 30 days)
Andrea
Andrea on 13 Nov 2013
Commented: Matt J on 13 Nov 2013
I'm getting an improper index matrix error for the following script:
% Ysum= zeros(V(1).dim)';
for t = 1:length(V)
Ysum = Ysum + spm_read_vols(V(t));
end
With 335 functional MRI images loaded in and onset times locked in. Is there anything anyone can think of to fix this??
  1 Comment
Matt J
Matt J on 13 Nov 2013
We need to see the error messages. Please copy/paste. Most likely, V contains non-integer values or something like that.

Sign in to comment.

Answers (0)

Categories

Find more on Biomedical Imaging in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!