Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Surendra Ratnu
Surendra Ratnu am 15 Okt. 2022
Kommentiert: KSSV am 15 Okt. 2022
I want to estiamte the slop of curve for every point. I attached curve data .

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by