how to calculate slope of a particular point

2 views (last 30 days)
i want to calculate the slope of the of the marked region with reactangular boxes . please suuggest me how it can be done

Accepted Answer

Star Strider
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

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!