Dear All,
I am trying to perform a simple statistics:
two vectors and a ttest or ttest2.
I have done that before, but now I am getting an error. Ranksum works instead.
e.g.1) ttest(x)
Undefined variable "coder" or class "coder.internal.scalarEg".
Error in nan_sum_or_mean (line 11)
XZERO = coder.internal.scalarEg(x);
Error in nanmean (line 7)
y = nan_sum_or_mean('mean',varargin{:});
Error in ttest (line 131)
xmean = nanmean(x,dim);
e.g.2) ttest2(x,y)
Undefined function or variable 'eml_is_const'.
Error in nanvar (line 29)
coder.internal.assert(eml_is_const(dim), …
Error in ttest2 (line 169)
s2x = nanvar(x,[],dim);
I found in the forum several suggestions like:
-make sure you have statistics toolbox. I have statistics and machine learning and I re-installed everything from scratch, just to be extra sure.
-make sure you are using "official" functions and I do.
I have no clue as to why it is not working.
I am using matlab 2016b
Can anyone help me figure it out?
Thank you in advance,
Ilaria
Best Answer