help > Estimation: Subscript indices must either be real positive integers or logicals.
Jan 17, 2019  05:01 PM | rich316
Estimation: Subscript indices must either be real positive integers or logicals.
Hello there,
I wonder if someone could help,
I don't know why this error keeps coming up when my analysis gets so far in the estimation:

I have had a look at the files, and I don't know quite how to sort this out.
If I can provide any more details, please let me know.

Any help would be gratefully received.

Many thanks.
Rich

============================================================
NIRS-SPM: Statistical Parametric Mapping for Near Infrared Spectroscopy

NIRS-SPM present working directory:
C:\Users\Rich\Documents\MATLAB\spm12
Warning: Action '!ContextHelp' is deprecated.
> In spm_help at 116
In nirs_spm_get_bf at 36
In spm_nirs_design_final at 81
In NIRS_Specification>push_spec_Callback at 74
In gui_mainfcn at 95
In NIRS_Specification at 18
Warning: Action '!ContextHelp' is deprecated.
> In spm_help at 116
In nirs_spm_get_ons at 53
In spm_nirs_design_final at 124
In NIRS_Specification>push_spec_Callback at 74
In gui_mainfcn at 95
In NIRS_Specification at 18
ReML Iteration 1 : ...1.429528e+05 [+4.25]
ReML Iteration 2 : ...5.105785e+03 [+4.50]
ReML Iteration 3 : ...1.277539e+03 [+4.75]
ReML Iteration 4 : ...7.612805e+02 [+5.00]
ReML Iteration 5 : ...1.791159e+04 [+4.00]
ReML Iteration 6 : ...8.747662e+04 [+3.00]
ReML Iteration 7 : ...5.747421e+05 [+2.00]
ReML Iteration 8 : ...1.850353e+04 [+2.25]
ReML Iteration 9 : ...1.216850e+10 [+1.25]
ReML Iteration 10 : ...8.451897e+04 [+1.50]
ReML Iteration 11 : ...1.175750e+05 [+0.50]
ReML Iteration 12 : ...2.041712e+05 [-0.50]
ReML Iteration 13 : ...4.169341e+05 [-1.50]
ReML Iteration 14 : ...2.196221e+04 [-1.25]
ReML Iteration 15 : ...1.165882e+05 [-2.25]
ReML Iteration 16 : ...4.904821e+04 [-2.00]
ReML Iteration 17 : ...3.448701e+04 [-1.75]
ReML Iteration 18 : ...1.244185e+07 [-2.75]
ReML Iteration 19 : ...2.021432e+06 [-2.50]
ReML Iteration 20 : ...1.814147e+05 [-2.25]
ReML Iteration 21 : ...4.267128e+06 [-3.25]
ReML Iteration 22 : ...1.431823e+05 [-3.00]
ReML Iteration 23 : ...1.091584e+05 [-2.75]
ReML Iteration 24 : ...8.628838e+04 [-2.50]
ReML Iteration 25 : ...5.184420e+05 [-3.50]
ReML Iteration 26 : ...4.434284e+05 [-3.25]
ReML Iteration 27 : ...1.646832e+07 [-4.25]
ReML Iteration 28 : ...8.708188e+05 [-4.00]
ReML Iteration 29 : ...1.026494e+06 [-5.00]
ReML Iteration 30 : ...8.120164e+05 [-4.75]
ReML Iteration 31 : ...1.039398e+06 [-5.75]
ReML Iteration 32 : ...6.808976e+05 [-5.50]

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 95)
feval(varargin{:});
Error in NIRS_Estimation (line 17)
gui_mainfcn(gui_State, varargin{:});
Error while evaluating UIControl Callback

============================================================