필터 지우기
필터 지우기

Create guess and Check loop in matlab

조회 수: 5 (최근 30일)
Xerxes Achaemenid
Xerxes Achaemenid 2021년 6월 5일
댓글: Xerxes Achaemenid 2021년 6월 5일
How can I create a guess and check loop for solve this equation: y=(2*x)-((2*x^2)*(1-exp(-1/x)))==0.211
Is there another way to solve this question?

채택된 답변

Chunru
Chunru 2021년 6월 5일
y= @(x) (2*x)-((2*x.^2)*(1-exp(-1./x))) - 0.211; % define the function f(x)=0
x = fsolve(y, 0); % here x0 = 0;
help fsolve for more details.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by