The Origin Forum - Reply to Topic
Dear Vincent Kral,
You write:
whatever I data set correlate, I get a linear response am I doing something wrong..
Response
In Origin, there is FFT correlation and the correlation coefficent. In your case it appears that you are using the corr(dataset1,dataset2,k,[,N]) function in the hopes of determining the correlation coefficient. Unfortunately you have discovered that using this function yields a dataset instead of a scalar value as you had hoped. Am I correct in assuming this? If so, I would suggest that instead of using the corr(dataset1,dataset2,k,[,N]) function, try performing a linear fit on your data. The results that are reported along with a linear fit include the correlation coefficient.
To perform a linear fit, first plot your Y data versus your X data (highlight the Y column and select something like Plot:Line). Next, select Analysis:Fit Linear with the graph window as the active window. You should see that your data is fitted and either the results window or script window opens (depending on which version of Origin you have) and reports a list of parameters. One of those parameters is R, the correlation coefficient.
Is this what you are looking for? If not, then I would suggest that you contact the Origin technical support representative in your area for more help. Be sure to provide your serial number with your inquiry so that it may be handled in a timely manner.
Sincerley,
Ryan Toomey
Technical Support Engineer
Microcal Software, Inc.
[This message has been edited by rtoomey (edited 09-11-98).]