Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
solving nonlinear equations using fzero..?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
JI Yong Song
il 1 Giu 2018
Chiuso: JI Yong Song
il 1 Giu 2018
I have to solve this equation (x-3)e^x+2=0 and i think i can do it with the fzero function. I looked up many examples but this type of equation can't be seen.. can anyone give me advice on how to solve this in MATLAB? Thanks
0 Commenti
Risposta accettata
Martynas Gabalis
il 1 Giu 2018
my_function = @(x) (x - 3) * exp(x) + 2;
initial_guess = 3;
solution = fzero(my_function, initial_guess);
0 Commenti
Più risposte (0)
Questa domanda è chiusa.
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!