finding intersection points by plot
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi. i've plotted a set of data against each other. now i want to find its intersection point with the x and y axis from the plot.
matlab only allows me to see the data points on the plot not the intersections.
any help?
0 Kommentare
Antworten (1)
Star Strider
am 14 Mai 2019
If you are doing a linear regression, try this:
p = polyfit(x,y,1);
YAxisIntercept = p(2)
XAxisIntercept = -p(2)/p(1)
This gets significantly more complicated with a higher-degree polynomial or a nonlinear model.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!