Hi again!
With the simulated signal it works great. But with my aquiered signal it does not, somtimes the linearfit dosen't work instead i get infinity between the x values. I think it is beacause i dont have my x-axis from 0,1,2,3,4....
Instead it is in date and time, like 14:45 2014-05-07. Dont know if you can change it to start from zero. Is there away to do so? Maybe an internal clock or external clock could work.
I have attached a picture of the problem.
Best Regards Maurlind