*תזינו בתרגיל הראשון את הנתונים, ותריצו- הקוד יפלוט לכם את התשובות לכל
השאלות*

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Technion References" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/reference-technion?hl=en
-~----------~----~----~----~------~----~------~--~---

%% Semi Conductors - Mathnet #8
    clear all
    close all
    clc
    
    %% INSERT THE DATA FROM THE 
EXERCISE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
    L = 100e-6 * 100; %[cm]
    Lh = 1.e-5*100;    %[cm]
    Nd = 3e+16;
    %constatnt:
    q = 1.6e-19;                % [Cb]
%% Question #1
    '______________ Question 1______________'
    L   = 100e-6*100;                 % [cm]
    Lh  = 1.2e-5*100;           % [cm]
    Le  = 2e-6*100;             % [cm]
    Nd  = 3e+16;                % [cm^-3]
    ni  = 2.4e+13;              % [cm^-3]
    A   = 1e-3;                 % [cm^-2]
    tau = 1e-9;                 % [sec]
    T   = 300;                  % [K]
    Gop=1e18;
    k   = 1.38e-23;             % [J/K]
    %% FROM HERE YOU DONT HAVE TO INSERT
    %%A THING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    %% !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    %% !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    x = [0 2*Lh 4*Lh 8*Lh];
    P = -((ni^2)/Nd)*exp(-x/Lh);
    P_0 = P(1)
    P_2Lh = P(2)
    P_4Lh = P(3)
    P_8Lh = P(4)
    
%% Question #2
    '______________ Question 2______________'
    Idiff = -q*A*(Lh/tau)*((ni^2)/Nd)*exp(-x/Lh);
    I_0 = Idiff(1)
    I_2Lh = Idiff(2)
    I_4Lh = Idiff(3)
    I_8Lh = Idiff(4)    
    
%% Question #3
    '______________ Question 3______________'
    Ie = q*A*(Lh/tau)*((ni^2)/Nd)*(exp(-x/Lh)-1);
    I_0 = Ie(1)
    I_2Lh = Ie(2)
    I_4Lh = Ie(3)
    I_8Lh = Ie(4)
    
%% Question #4
    '______________ Question 4______________'
    E = (k*T/q)*(Lh/Le^2)*(ni^2/Nd^2)*(exp(-x/Lh)-1);
    E_0 = E(1)
    E_2Lh = E(2)
    E_4Lh = E(3)
    E_8Lh = E(4)
    
%% Question #5
    '______________ Question 5______________'
    a = (((exp(-x/Lh)-1).^2)./(exp(-x/Lh)))*(Lh^2/Le^2)*(ni^2/Nd^2);
    res_0 = a(1)
    res_2Lh = a(2)
    res_4Lh = a(3)
    res_8Lh = a(4)
%% Question #6
    '______________ Question 6______________'
    'Yes'
    
%% Question #7
    '______________ Question 7______________'
    '0=Dh*(d2p/dx2)-(p/Tau)+Gop'
%% Question #8
    '______________ Question 8______________'
    'p(x=0)=-(ni^2/Nd)*P(x->inf)=Gop*Tau'
%% Question #9
    '______________ Question 9______________'
    a=-(ni^2/Nd+Gop*tau).*exp(-x/Lh)+Gop*tau;
    res_0 = a(1)
    res_2Lh = a(2)
    res_4Lh = a(3)
    res_8Lh = a(4)
%% Question #10
    '______________ Question 10______________'
    a=-(q*A*Lh/tau)*(ni^2/Nd+Gop*tau).*exp(-x/Lh);
    res_0 = a(1)
    res_2Lh = a(2)
    res_4Lh = a(3)
    res_8Lh = a(4)
%% Question #11
    '______________ Question 11______________'
    Idiode=-(q*A*Lh/tau)*(ni^2/Nd+Gop*tau)
%% Question #12   
    '______________ Question 12______________'
    Vapp = [0.1 0.3 0.5 0.7];
    a=(ni^2/Nd).*(exp(q*Vapp/(k*T))-1);
    res_1 = a(1)
    res_2 = a(2)
    res_3 = a(3)
    res_4 = a(4)
%% Question #13
    '______________ Question 13______________'
    a=(q*A*Lh*ni^2/(Nd*tau)).*(exp(q*Vapp/(k*T))-1);
    res_1 = a(1)
    res_2 = a(2)
    res_3 = a(3)
    res_4 = a(4)
%% Question #14
    '______________ Question 14______________'
 'p(x=0)=Pn*exp(q*Vapp/(k*T))               P(x->inf)=Gop*Tau'
%% Question #15
    '______________ Question 15______________'
    a=(((ni^2)/Nd)*exp(q*Vapp/(k*T))-Gop*tau)*exp(-1/2)+Gop*tau;
    res_1 = a(1)
    res_2 = a(2)
    res_3 = a(3)
    res_4 = a(4)
%% Question #16
    '______________ Question 16______________'
    a=(q*A*Lh/tau).*(((ni^2)/Nd)*exp(q*Vapp/(k*T))-Gop*tau);
    res_1 = a(1)
    res_2 = a(2)
    res_3 = a(3)
    res_4 = a(4)
%% Question #17
    '______________ Question 17______________'
   b=(q*A*Lh*ni^2/(Nd*tau)).*(exp(q*Vapp/(k*T))-1);
    res_1 = a(1)/b(1)
    res_2 = a(2)/b(2)
    res_3 = a(3)/b(3)
    res_4 = a(4)/b(4)   
%% Question #18
    '______________ Question 18______________'
    'Answers 1 And 2 are correct'

    
    

לענות