Generate a function from a scatterplot
so i have two vectors.
One is a time stamp
the second is y axis data.
so for each time stamp there is a corresponding data point
I need to plot this scatterplot somehow and then find a line of best fit.
Then i need to take the integral of it.
I have tried to use the regress function and the interp function without luck. All i get are errors.
I cant find a good example online.
The is just a simple 2d plot. Good old X and Y
Can someone help me with an example.
I dont understand all the parameters that regress and interp are expecting.
When i try to plot it just gives me an error. i cant post my sheet because of IP

