Finding the x intercept
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Darpan Verma
el 10 de Mzo. de 2019
Comentada: Darpan Verma
el 10 de Mzo. de 2019
I have this curve fit plot. as shown in the figure below. How can I find at y = 0? as marked in the figure. This is a point where y = 0. I need a generalized code which can keep on finding value at y = 0 and keeps storing in a table.

Respuesta aceptada
Walter Roberson
el 10 de Mzo. de 2019
fitresult(1) is evaluating the model at x = 1, not extracting the first coefficient.
coeffs = coeffvalues(fitresult);
m = coeffs(1);
b = coeffs(2);
Yintercept = b;
Xintercept = -b/m;
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
