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

main.m
% Define the BJT parameters
beta = 100;
Vbe = 0.7; % Base-emitter voltage

% Define the input voltage range
V_in = 0:0.01:1; % Range from 0V to 1V in steps of 0.01V

% Calculate the output voltage
V_out = -beta*(V_in - Vbe);

% Plot the i-v input curves as a function of output voltage
figure;
plot(V_out, V_in, 'b', 'LineWidth', 2);
xlabel('Output Voltage (V)');
ylabel('Input Current (A)');
title('I-V Input Curves for Common Emitter BJT');
grid on;
452 chars
18 lines

related categories

gistlibby LogSnag