gistlib
main.m% Define constants Is = 1e-15; Vt = 0.025; betaF = 100; betaR = 1; VBE = linspace(0,1,100); VCE = 2; % can be changed % Ebers-Moll equations IC_F = Is .* (exp(VBE./Vt) - 1); IC_R = Is .* (exp(VCE./Vt) - 1); % Plot figure; plot(VBE, IC_F, 'r', 'LineWidth', 2); hold on; plot(VBE, IC_R/betaR, 'b', 'LineWidth', 2); xlabel('V_{BE} (Volts)'); ylabel('Collector Current (Amps)'); legend('Forward Active Mode (IC_F)', 'Reverse Active Mode (IC_R / β_R)'); title('Ebers-Moll Equations'); grid on; hold off; 501 chars24 lines
% Define constants Is = 1e-15; Vt = 0.025; betaF = 100; betaR = 1; VBE = linspace(0,1,100); VCE = 2; % can be changed % Ebers-Moll equations IC_F = Is .* (exp(VBE./Vt) - 1); IC_R = Is .* (exp(VCE./Vt) - 1); % Plot figure; plot(VBE, IC_F, 'r', 'LineWidth', 2); hold on; plot(VBE, IC_R/betaR, 'b', 'LineWidth', 2); xlabel('V_{BE} (Volts)'); ylabel('Collector Current (Amps)'); legend('Forward Active Mode (IC_F)', 'Reverse Active Mode (IC_R / β_R)'); title('Ebers-Moll Equations'); grid on; hold off;
gistlibby LogSnag