Problems with graph in MATLAB
显示 更早的评论
Hi. I have a problem with graph. I'm asking you a question because it's difficult to figure out what the problem is by myself.
I can't plot. What's the problem?


4 个评论
Mario Malic
2021-2-2
Vgs and Id have to have the same number of columns, check their sizes. You didn't even share the error, nor the code that we can run, we can't really help you with this.
Walter Roberson
2021-2-2
ld is infinite or nan or complex. We would need to execute the code to figure out which.
Unfortunately, MATLAB has big bugs in the feature to execute pictures of code, so we can't that part.
YURIM LEE
2021-2-3
YURIM LEE
2021-2-3
回答(1 个)
Walter Roberson
2021-2-3
h = 6.626E-23; % Planks constant
q = 1.602E-19; % Elementary charge
b = 4*sqrt(2*MR)/(3*q*h)*Eg^(3/2);
With h being on the order of 1E-23 and q being on the order of 1e-19 then q*h is going to be on the order of 1e-39. You divide by (q*h) so your b is going to be on the order of 1e+39 -ish .
Id = a.*f.*E.*Vtw.*exp(-b./E); %Drain current
-b./E comes out on the order of -1e+45 . exp() of that is going to underflow to 0, even if you were to use software floating point -- you are dealing with values on the magnitude of 
类别
在 帮助中心 和 File Exchange 中查找有关 Semiconductors and Converters 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!