finding slope of the graph
7 views (last 30 days)
Show older comments
I need find the slope of the first cycle of this graph. If anyone has any ideas please let me kniow. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1283650/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1283650/image.jpeg)
2 Comments
John D'Errico
on 3 Feb 2023
Since a cycle is a periodic thing, the slope will vary from positive to negative. What do you mean by the slope of the cycle?
Is it the slope of the first part of that curve? If so, then just take only the first few points, and use polyfit(x,y,1).
Answers (1)
See Also
Categories
Find more on Interpolation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!