The logical indices contain a true value outside of the array bounds
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am trying to correct the voxel size and set outlier if fMRI activation maps and getting this error.
Error in voxel_size (line 38)
himg=aimg(mask>0);
0 Commenti
Risposte (1)
Stephen23
il 22 Mag 2021
As the error states, your logical indexing includes a TRUE value outside the size of that array. Compare:
V = randi(9,1,3)
X = [true,false,true,false,false,false,false,false,false,false]
V(X) % no error
Y = [true,false,true,false,false,false,false,false,false,true]
V(Y) % last TRUE is outside size of V
0 Commenti
Vedere anche
Categorie
Scopri di più su MRI in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!