Error using sub2ind Out of range subscript.
4 views (last 30 days)
Show older comments
I have this eeg data and I want to use fieldtrip to align the data. This is the code that Im using but whenever I try to interact with the graph it gives me it gives me this error; Error using sub2ind (line 71) Out of range subscript.
subjID = 'SubjectUCI29';
mri = ft_read_mri([subjID '_MR_acpc.nii']); % we used the dcm series
mri = ft_determine_coordsys(mri);
cfg = [];
cfg.method = 'interactive';
cfg.coordsys = 'acpc';
mri_acpc = ft_volumerealign(cfg, mri);
Its from the paper;
Analysis of human ECoG and sEEG recordings
Please help me
2 Comments
Walter Roberson
on 6 Feb 2025
Which line is generatoring the error? Please show the complete error messages.
Answers (0)
See Also
Categories
Find more on Biomedical Signal Processing 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!