plot six input i-v curves as function of output voltage for a common emitter bjt in matlab

main.m
% Define the input currents
I1 = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6]; % Example input currents

% Define the BJT parameters
Vcc = 10; % Collector supply voltage
Rc = 1000; % Collector resistor value
Re = 500; % Emitter resistor value
Vbe = 0.7; % Base-emitter voltage

% Calculate the output voltages
Vout = zeros(1, length(I1));
for i = 1:length(I1)
    Vout(i) = Vcc - Rc*I1(i) - Re*I1(i) - Vbe; % Common emitter configuration
end

% Plot the input vs output voltage curves
plot(Vout, I1);
xlabel('Output Voltage (V)');
ylabel('Input Current (A)');
title('Common Emitter BJT I-V Curves');
586 chars
21 lines

related categories

gistlibby LogSnag