How to obtain slop for a curve at each point??

3 views (last 30 days)
I want to estiamte the slop of curve for every point. I attached curve data .

Accepted Answer

KSSV
KSSV on 15 Oct 2022
load bw2.mat ;
x = N(:,1) ;
y = N(:,2) ;
m = gradient(y)./gradient(x) ;
  2 Comments
Surendra Ratnu
Surendra Ratnu on 15 Oct 2022
Thanks its works for me, Can you tell me how will i will identify max change in slop and draw the points on curve ??
KSSV
KSSV on 15 Oct 2022
Get the differences of slopes using diff. Pick the maximum value out of it.

Sign in to comment.

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Tags

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!