Professional Documents
Culture Documents
2. A series RLC circuit consists of a 20 Ω resistor, a 51 μF capacitor, and a 25 mH inductor. If the source
frequency is 50 Hz, and the circuit current is 350 mA and the applied voltage is 20V.plot the graph for
voltage across inductor and capacitor and plot i)current and voltage across inductor in a same plot ii)
current and voltage across capacitor in a same plot.
2/12/2020
1. Consider the following 5 lines of MatLab code entered in the MATLAB command window:
>> X = [7 7 7 7];
>> Y = 6:9;
>> W = 3;
>> Z = 2;
>> V = 8;
What is the output when the following commands are typed in sequence from the MATLAB
command window?
a) V ~= X
b) V == Y
c) X+Y/2
d) V/Z*W
e) 4*W/Z^2+2
f) Z*[1:2:6]
g) A=[W,Z,V,Z]
h) [A’,X’]
A)
B) [0 0 0 0 0 0]
C) [1 1]
A) [6 0 5 9 7 2]
B)