NOTE: Laboratory teams may work together; however, reports are to be submitted i
ID: 2080949 • Letter: N
Question
NOTE: Laboratory teams may work together; however, reports are to be submitted individually. Students are to research Thevenin’s theorem and maximum power transfer. They should compare the design results Reports are to include MatLab® source code and computer generated graph. Writing style shall reflect quality college-level work.
Refer to the following figure. Develop software using MatLab®, which accepts values of Vth, Rth and a set of values for Rx. The program computes and prints a graph of the voltage across Rx, current through Rx, and the power absorbed by Rx for each value of Rx. Using MatLab® function(s), determine the value of Rx where maximum power absorption occurs.
Use Vth = 10 volts and Rth = 1500 ohms.
Explanation / Answer
Matlab Code:
-------------------------------------------------------------------------------------------------------------------------------------------
function thevenin(Vth,Rth,Rx)
Rx = Rx(:);
if (size(Vth)~=1)
disp('Check Thevenin Voltage, size should be 1');
return;
end
if ( size(Rth)~=1)
disp('Check Thevenin Resistance size, should be 1');
return;
end
for y=1:size(Rx)
if(Rx(y)==Rth)
fprintf('Maximum power absorbed at the load resistance %d',Rth);
end
V(y)= (Vth * Rx(y))/(Rth+Rx(y));
I(y)= V(y) / Rx(y);
P(y)= V(y) * I(y);
end
figure;
subplot(3,1,1);
plot(Rx,V);
ylabel('Voltage');
subplot(3,1,2);
plot(Rx,I);
ylabel('Current');
subplot(3,1,3);
plot(Rx,P);
ylabel('Power');
xlabel('Rx- Load Resistance');
end
-------------------------------------------------------------------------------------------------------------------------------------------
this is total code and it inlcudes in which load resistance value the circuit provides maximum power .
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.