Consider an RC circuit with resistance R and capacitance C. The circuit is stimulated with a...

60.1K

Verified Solution

Question

Electrical Engineering

Consider an RC circuit with resistance R and capacitance C. Thecircuit is stimulated with a pulse of amplitude A and width T.

The purpose of this study is to understand what happens to theimpulse response, capacitor voltage, and resistor voltage forvarious resistor values: 600 ?, 1000 ?, and 1200 ?. The name of theMATLAB script will be called project2a. Excite the circuit with arectangular pulse voltage of amplitude=5 V and pulse width of 10ms. Plot the results of each resistor value from t=0 to t=20 ms onthe same graph (3 graphs-impulse response, capacitor voltage, andresistor voltage). Label all axes, put a grid on the graph, andapply the proper legend. Comment on and explain the results.

For all cases of the study, the capacitor will have a value of 1µF. Use the function below to make graphs.

function [ Vc Vr t ] = rc_voltages( A,R,C,T,Tend )

t=0:0.0001:Tend;

for i=1:length(t)

if t(i)

Vc(i)=A*(1-exp(-t(i)/(R*C)));

Vr(i)=A*exp(-t(i)/(R*C));

else

Vc(i)=A*(exp(T/(R*C))-1)*exp(-t(i)/(R*C));

Vr(i)=A*(1-exp(T/(R*C)))*exp(-t(i)/(R*C));

end

end

end

Answer & Explanation Solved by verified expert
4.5 Ratings (730 Votes)
Hello Please find the answerattached below If the answer has helped you please give athumbs up rating Thank you and have a nicedayNOTE The given function requires aminor tweak to give you the correct answer The statement if tiis replaced by if tiT because this part represents thedecaying part of the reponse which happens after the pulse inputdies down Matlab Code Function definitionfunction Vc Vr t rcvoltages ARCTTend t000001Tend for i1lengtht if    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students