Info
此问题已关闭。 请重新打开它进行编辑或回答。
solving nonlinear equations using fzero..?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Martynas Gabalis
2018-6-1
my_function = @(x) (x - 3) * exp(x) + 2;
initial_guess = 3;
solution = fzero(my_function, initial_guess);
0 个评论
更多回答(0 个)
此问题已关闭。
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!