gistlib
main.m% Common Emitter Output Characteristic plot % Define parameters Vcc = 10; % Collector voltage Rc = 1e3; % Collector resistance Re = 500; % Emitter resistance Vbb = 0:0.1:1; % Base voltage range Beta = 100; % current gain % Initialize arrays Ic = zeros(1, numel(Vbb)); % Calculate collector current for each base voltage for i = 1:numel(Vbb) Ib = (Vbb(i) - 0.7) / Re; % Base current Ic(i) = Beta * Ib; % Collector current end % Plot the output characteristic plot(Vcc - Rc * Ic, Ic); xlabel('Vce (Collector-Emitter Voltage)'); ylabel('Ic (Collector Current)'); title('Common Emitter Output Characteristic'); 619 chars24 lines
% Common Emitter Output Characteristic plot % Define parameters Vcc = 10; % Collector voltage Rc = 1e3; % Collector resistance Re = 500; % Emitter resistance Vbb = 0:0.1:1; % Base voltage range Beta = 100; % current gain % Initialize arrays Ic = zeros(1, numel(Vbb)); % Calculate collector current for each base voltage for i = 1:numel(Vbb) Ib = (Vbb(i) - 0.7) / Re; % Base current Ic(i) = Beta * Ib; % Collector current end % Plot the output characteristic plot(Vcc - Rc * Ic, Ic); xlabel('Vce (Collector-Emitter Voltage)'); ylabel('Ic (Collector Current)'); title('Common Emitter Output Characteristic');
gistlibby LogSnag