Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Dear all, I was windering if the following can be solced using IDL (V4) Data:- Change in voltage against time Result:- Sinusoidal wave Is it possible to find the line of best fit, and thus derive its equation using IDL? The form of the equation is as follows:- y = a * sin (b*x + c) Many thanks in advance Richard
R.J. Hall wrote: > > Dear all, > > I was windering if the following can be solced using IDL (V4) > > Data:- Change in voltage against time > > Result:- Sinusoidal wave > > Is it possible to find the line of best fit, and thus derive its > equation using IDL? > > The form of the equation is as follows:- > > y = a * sin (b*x + c) > Richard - Check out the CURVEFIT procedure, or maybe one of the "See Also" routines at the end of the on-line help for this function. Dave -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ David S. Foster Univ. of California, San Diego Programmer/Analyst Brain Image Analysis Laboratory foster@bial1.ucsd.edu Department of Psychiatry (619) 622-5892 8950 Via La Jolla Drive, Suite 2200 La Jolla, CA 92037 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~