I am trying to debug a simple statistics of a sample. Error message:
Subscript indices must either be real positive integers or logicals
I been getting this error lately for some homework. What does this mean?
clc
format short g
s=[0.90 1.32 1.96 1.85 2.29 1.42 1.35 1.47 1.74 1.82...
1.30 1.47 1.92 1.65 2.06 1.55 1.95 1.35 1.78 2.14...
1.63 1.66 1.05 1.71 1.27];
mean=mean(s)
median=median(s)
mode=mode(s)
max=max(s); min=min(s);
range=max-min ,std=std(s) ,var=var(s)
cvcd=std/mean*100