Error in extracting ROISignals
- Read more about Error in extracting ROISignals
- 1 comment
- Log in or register to post comments
Hi Chao-Gan,
There is a problem with masks containing NaN-values. Because Matlabs function 'unique' handles each NaN-value as a distinct value, in a multilabel ROI-defining mask with NaN-values each mask voxel with the value NaN is considered as a separate ROI. This situation can lead to maximum size exceeding errors when calculationg the covariance matrix.
I recommend to modify in the function y_ExtractROISignal the line 197