How can I find the two intersection points of the x and y axis of two equations in Matlab?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Laura
il 29 Ott 2023
Risposto: Walter Roberson
il 29 Ott 2023
I need to find the two intersection points of the x,y axis of x^2 and log(x+1), I have tried it with the solve command and it does not work.
0 Commenti
Risposta accettata
Walter Roberson
il 29 Ott 2023
Example with deliberately different equations. You can study the techniques and appy them to your own code.
syms x y
eqn1 = y == 5*x^3;
eqn2 = y == log(x^2-2*x-1);
yintercept1 = solve(subs(eqn1, y, 0), 'returnconditions', true)
yintercept1.x
yintercept1.conditions
yintercept2 = solve(subs(eqn2, y, 0), 'returnconditions', true)
yintercept2.x
xintercept1 = solve(subs(eqn1, x, 0), 'returnconditions', true)
xintercept2 = solve(subs(eqn2, x, 0), 'returnconditions', true)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Calculus in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!