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