how to calculate slope of a particular point
2 views (last 30 days)
Show older comments
Manish Kumar
on 29 Jan 2016
Commented: Star Strider
on 30 Jan 2016
i want to calculate the slope of the of the marked region with reactangular boxes . please suuggest me how it can be done
0 Comments
Accepted Answer
Star Strider
on 29 Jan 2016
Use the gradient function to calculate the derivative. If you want to fit a line to it, use the polyfit (and related functions).
For example:
b = polyfit(x,y,1);
The slope will be ‘b(1)’.
4 Comments
More Answers (0)
See Also
Categories
Find more on Geometric Transformation and Image Registration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!