Finding the slope of line
327 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tarkan Canova
am 8 Nov. 2018
Kommentiert: Syed Zubair shah
am 5 Apr. 2022

I have to find slope of best line (acceleration). How can I find it ? I couldn't find any datas about it on the internet.
1 Kommentar
Stephen23
am 8 Nov. 2018
"How can I find it ?"
By the definition of slope: the change in Y divided by the change in X.
Akzeptierte Antwort
KSSV
am 8 Nov. 2018
If you have points: use slope formula:
m = (y2-y1)/(x2-x1) ;
Or, fit a straight line using polyfit
p = polyfit(x,y,1) ;
In the above p will be a 2x1 matrix, which gives slope and y intercept.
Or, if you have image and want coordinates from there slope use:
6 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!