Info

この質問は閉じられています。 編集または回答するには再度開いてください。

solving nonlinear equations using fzero..?

1 回表示 (過去 30 日間)
JI Yong Song
JI Yong Song 2018 年 6 月 1 日
閉鎖済み: JI Yong Song 2018 年 6 月 1 日
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

採用された回答

Martynas Gabalis
Martynas Gabalis 2018 年 6 月 1 日
my_function = @(x) (x - 3) * exp(x) + 2;
initial_guess = 3;
solution = fzero(my_function, initial_guess);

その他の回答 (0 件)

この質問は閉じられています。

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by