필터 지우기
필터 지우기

How to get a graph for DG MOSFET (Ids vs Vds characteristics)????

조회 수: 3 (최근 30일)
ARTI
ARTI 2013년 12월 20일
댓글: Walter Roberson 2022년 8월 28일
if true
W=324;
un=1;
Cox=3;
Leff=6;
ld=3;
Ec=1;
lambda=25*10^(-5);
Vgs=0.5;
vth=2.04;
DIBL=0.5;
Vth=vth-DIBL
Vds=0:0.1:7%Vds Voltage value in Volts
Id=(2*W*un*Cox/Leff-ld+(Vds/Ec)) +(lambda* 2*W*Cox/(Leff-ld)^2)*((Vgs-Vth)*Vds-0.5*Vds^2)
plot(Vds,Id)
end

답변 (1개)

Walter Roberson
Walter Roberson 2013년 12월 20일
Id=(2*W*un*Cox/Leff-ld+(Vds/Ec)) +(lambda* 2*W*Cox/(Leff-ld).^2)*((Vgs-Vth)*Vds-0.5*Vds.^2)
  댓글 수: 2
Walter Roberson
Walter Roberson 2022년 8월 28일
Vds=0:0.1:7
That is a 1 x 71 vector
Vds^2
That is the matrix power operator, equivalent in this case to
Vds * Vds
where * is the algebraic matrix product operation, also known as "inner product". When you have A * B for two matrices, then size(A,2) must equal size(B,1) -- the number of columns of the first matrix must match the number of rows of the second matrix. However when you take a (1 x 71) * (1 x 71) then the number of columns in the first operand is 71, but the number of rows in the second operand is 1. Using * (matrix power) between a 1 x 71 and a 1 x 71 is not a valid calculation.
If you consider for a second you will see that for A^2 to be valid, A must be a square matrix (possibly a scalar)
If you want each element of Vds to be independently squared then you need the element-by-element power, which is the .^ operator.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by