필터 지우기
필터 지우기

Help with solving an equation

조회 수: 1 (최근 30일)
Amy Topaz
Amy Topaz 2022년 3월 13일
댓글: Amy Topaz 2022년 3월 13일
I am getting an error while trying to solve the below equation (Function value at interval endpoints must differ in sign)
Any idea how to solve it
upCOX = 125;
vtp = -0.15;
lambda = -0.01;
l = 1;
we = 1;
Rload = 10000;
vdd = 1;
va = 0.2;
vgs = va - vy;
eq1 = @(vy) - 1 + vy + Rload*((upCOX*(we/l)*(1-vy*lambda)*(((vgs-vtp)*(-vy))-(0.5*(vy)^2))));
x1 = [0 1];
vy = fzero(eq1,x1);
disp(vy)

채택된 답변

Sam Chak
Sam Chak 2022년 3월 13일
Make a direct substitution of vgs into the equation.
upCOX = 125;
vtp = -0.15;
lambda = -0.01;
l = 1;
we = 1;
Rload = 10000;
vdd = 1;
va = 0.2;
% vgs = va - vy;
eq1 = @(vy) - 1 + vy + Rload*((upCOX*(we/l)*(1 - vy*lambda)*((((va - vy) - vtp)*(- vy)) - (0.5*(vy)^2))));
x1 = [0 1];
vy = fzero(eq1, x1);
disp(vy)
Hope it helps.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by