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

I want to estiamte the slop of curve for every point. I attached curve data .

 Accepted Answer

load bw2.mat ;
x = N(:,1) ;
y = N(:,2) ;
m = gradient(y)./gradient(x) ;

2 Comments

Thanks its works for me, Can you tell me how will i will identify max change in slop and draw the points on curve ??
Get the differences of slopes using diff. Pick the maximum value out of it.

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2022b

Tags

Asked:

on 15 Oct 2022

Commented:

on 15 Oct 2022

Community Treasure Hunt

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

Start Hunting!