Watch this Author's files

Wouldn't the p-value for the zero-amplitude test have to come from the F-distribution's CDF, rather than its PDF?

Undefined function or variable "phi".

Error in ==> cosinor at 94 fprintf(1,'Mesor = %g \nAmplitude = %g \nAcrophase = %g \n\n',M,Amp,phi);

The published example should run to completion. The statistics toolbox is necessary. Please post if there are any additional problems.

The published example does not run to completion. The error message is:

??? Undefined function or method 'tinv' for input arguments of type 'double'.

Error in ==> cosinor at 121 CI_M = tinv(1-alpha/2,n-3)*sigma^2*sqrt(((sum(x.^2))*(sum(z.^2)) - (sum(x.*z))^2)/(n^3*(X*Z - T^2))); %#ok<NASGU>

Either this m-file depends on a toolbox not identified here, or something has been left out of the submission.

There is a bug in the published M-file!!!

Contact us