plot bjt's output current versus output voltage curves parametrized by 10 values of input current in matlab

main.m
% Define parameters
beta = 100; % current gain
Vt = 0.025; % thermal voltage
Vcc = 5; % collector supply voltage
Rc = 1e3; % collector resistor

% Define range of input currents
Ib_values = linspace(0.1e-3, 1e-3, 10); % 0.1mA to 1mA in 10 steps

% Calculate output characteristics
for i = 1:length(Ib_values)
    Ib = Ib_values(i);
    Ic = beta * Ib;
    Vce = Vcc - Ic * Rc;
    
    % Plot output voltage versus output current (Ic)
    plot(Vce, Ic, 'o')
    hold on
end

% Add labels and title
xlabel('Output Voltage (Vce)')
ylabel('Output Current (Ic)')
title('BJT Output Characteristic Curves for different Ib values')
625 chars
25 lines

related categories

gistlibby LogSnag