help > Estimate problem
Jul 7, 2018  01:07 PM | fakun chen
Estimate problem
hello,

I analyze the fnirs data with the NIRS_SPM. A problem occurred when i do the 'estimation'. The exact error is below and any advice or sugestion is very helpful,thanks! 

HERE

N =
4496

Detrending... ch1
Detrending... ch2
Detrending... ch3
Detrending... ch4
Detrending... ch5
Detrending... ch6
Detrending... ch7
Detrending... ch8
Detrending... ch9
Detrending... ch10
Detrending... ch11
Detrending... ch12
Detrending... ch13
Detrending... ch14
Detrending... ch15
Detrending... ch16
Detrending... ch17
Detrending... ch18
Detrending... ch19
Detrending... ch20
Detrending... ch21
Detrending... ch22
Detrending... ch23
Detrending... ch24

ReML Iteration 1 : ...1.671513e+05 [+4.25]
ReML Iteration 2 : ...4.013087e+02 [+4.50]
ReML Iteration 3 : ...2.114812e+02 [+4.75]
ReML Iteration 4 : ...3.047954e+02 [+3.75]
ReML Iteration 5 : ...1.410013e+02 [+4.00]
ReML Iteration 6 : ...2.166358e+02 [+3.00]
ReML Iteration 7 : ...6.710701e+01 [+3.25]
ReML Iteration 8 : ...8.938422e+01 [+2.25]
ReML Iteration 9 : ...2.729207e+01 [+2.50]
ReML Iteration 10 : ...4.276401e+01 [+1.50]
ReML Iteration 11 : ...1.428516e+01 [+1.75]
ReML Iteration 12 : ...1.855772e+01 [+0.75]
ReML Iteration 13 : ...1.202287e+03 [-0.25]
ReML Iteration 14 : ...3.273906e+00 [+0.00]
ReML Iteration 15 : ...1.825369e+01 [-1.00]
ReML Iteration 16 : ...3.369692e+00 [-0.75]
ReML Iteration 17 : ...1.471605e+00 [-0.50]
ReML Iteration 18 : ...4.169026e+00 [-1.50]
ReML Iteration 19 : ...8.608191e+01 [-2.50]
ReML Iteration 20 : ...4.141194e-01 [-2.25]
ReML Iteration 21 : ...1.450885e+00 [-3.25]
ReML Iteration 22 : ...2.092968e+01 [-4.25]
ReML Iteration 23 : ...1.420476e+00 [-4.00]
ReML Iteration 24 : ...2.019455e+01 [-5.00]


Subscript indices must either be real positive integers or logicals.

Error in nirs_spm_indiv (line 123)
ResSS_nirs(aa,bb) = (KWY(:,aa)'*KWY(:,bb) - KWY(:,i)'*xX.xKXs.X*xX.pKX* KWY(:,bb));
Error in prewhitening (line 213)
[SPM]= nirs_spm_indiv(SPM, Y, save_directory);
Error in NIRS_Estimation>push_est_Callback (line 106)
[SPM_nirs] = prewhitening(SPM_nirs, Y, handles.pathn);
Error in gui_mainfcn (line 96)
feval(varargin{:});
Error in NIRS_Estimation (line 17)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)NIRS_Estimation('push_est_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback



Appreciate in advance for your help!

Best wishes,

Fakun