Plot for threshold voltage Voff Vs tAlN
2 ビュー (過去 30 日間)
古いコメントを表示
I am trying to plot Voff Vs tAlN using the following equation , but I am not getting correct result. Please rectify my code.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1084335/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1084340/image.png)
Code:
clear;
q=1.6e-19;
E0=8.85e-12;
Ealgan=10.31;
Ealn=10.78;
fieff=(5.1*1.6e-19);
sigmaaln=3.38e17;
sigmaalgan=1.3e17;
detaec=(0.862*1.6e-19);
Nd=1e24;
talgan=23e-9;
p=((q^2)/Ealn)*E0;
sigmatotal=(sigmaalgan+sigmaaln);
taln=0.8:0.1:10;
m=length(taln);
for i=1:m
detaec2 = detaec + (p*sigmaaln*taln(i));
voff(i)=(fieff - detaec2 - (q*Nd*talgan^2/2*Ealgan) - sigmatotal/Ealn*(talgan+taln(i))
end
plot(taln, voff, 'k-o')
xlabel('taln (nm)')
0 件のコメント
回答 (1 件)
Bhanu Prakash
2023 年 2 月 15 日
編集済み: Bhanu Prakash
2023 年 2 月 23 日
Hi Nudrat,
As per my understanding you are trying to plot “Voff vs tAIN” for the mentioned equation but was getting an error during execution.
The code that you have provided has an error in the 18th line, where the equation of “Voff” is defined. The error is because there is a missing parenthesis “)” at the end.
The error could be avoided by adding “ ) ” at the end of the 18th line.
I have attached the edited part of the code, for your reference.
voff(i)=(fieff - detaec2 - (q*Nd*talgan^2/2*Ealgan) - sigmatotal/Ealn*(talgan+taln(i)));
Thanks,
Bhanu Prakash.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!