plot input current versus input voltage of a common emitter bjt in matlab

main.m
% Constants
Vcc = 10;           % Collector supply voltage
Rc = 1e3;           % Collector resistor value
Re = 1e3;           % Emitter resistor value
Vbe = 0.7;          % Base-emitter voltage

% Input Voltage Sweep
Vin = 0:0.1:Vcc;    % Input voltage range

% Calculate Input Current
Iin = (Vin - Vbe) / Re;

% Plot Input Current vs Input Voltage
plot(Vin, Iin);
xlabel('Input Voltage (V)');
ylabel('Input Current (A)');
title('Common Emitter BJT Input Characteristic Curve');
grid on;
488 chars
19 lines

related categories

gistlibby LogSnag