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

3 次查看(过去 30 天)
I want to estiamte the slop of curve for every point. I attached curve data .

采纳的回答

KSSV
KSSV 2022-10-15
load bw2.mat ;
x = N(:,1) ;
y = N(:,2) ;
m = gradient(y)./gradient(x) ;
  2 个评论
Surendra Ratnu
Surendra Ratnu 2022-10-15
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 2022-10-15
Get the differences of slopes using diff. Pick the maximum value out of it.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by