Following is the statement inside my code I am using in Matlab:
[h_sgsim,p_sgsim,ci_sgsim] = ttest(q_mean_sgsim_yearly_TankMethod,q_mean_reference_truth_yearly_TankMethod(1));
where q_mean_sgsim_yearly_TankMethod
is a 100 X 1 vector and q_mean_reference_truth_yearly_TankMethod(1)
is a scalar.
I don't know why its giving the error even when in definition of function 'ttest' the first two arguments are vector and scalar respectively.