0% found this document useful (0 votes)
36 views

Name: Degree: Select Only One Question Question (I) The Following Circuit Shows A Simple RLC Circuit. Design A

The document describes two MATLAB programming questions for a lab exam. Question I asks students to design a program to illustrate resonance phenomena in an RLC circuit by plotting current vs. frequency on linear and semi-logarithmic scales. Question II asks students to design a program to plot load power vs. current and load power vs. current squared for a simple DC circuit, using given resistor and voltage values as inputs. Sample outputs including plots and tables of values are provided for the second question.

Uploaded by

Anonymous 2h5lIe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Name: Degree: Select Only One Question Question (I) The Following Circuit Shows A Simple RLC Circuit. Design A

The document describes two MATLAB programming questions for a lab exam. Question I asks students to design a program to illustrate resonance phenomena in an RLC circuit by plotting current vs. frequency on linear and semi-logarithmic scales. Question II asks students to design a program to plot load power vs. current and load power vs. current squared for a simple DC circuit, using given resistor and voltage values as inputs. Sample outputs including plots and tables of values are provided for the second question.

Uploaded by

Anonymous 2h5lIe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Minia University Faculty of Engineering

Computers and Systems Eng., Dept. Lab(1), First Year


June,2014 Max. Degree: 30 Time Allowed: 1 Hr.

Name: Degree:

Select only one question

Question (I) The following circuit shows a simple RLC circuit. Design a
MATLAB program to illustrate the resonance phenomena. The inputs are
the values of R, L, and C. The output is the resonance frequency f
o
and two
figures. The first one shows the variation of the current versus frequency in
a linear scale, and the second one shows the variation of the current versus
frequency in a semi logarithmic scale.

R
L
C
Vsin(wt)


Question (II) The following circuit shows a simple dc circuit that is used to
show the maximum power theorem. Design a MATLAB program to plot two
figures. The first one shows the variation load power with the variation of
the current I and the second one plot the variation of power with I
2
. The
inputs are the values of R, and V.

Vs
R
s
Load R
l

function [I,I2,PL] = pcurve(RS,VS)
% This function computes the power curve
% It also plots power vs. I and I^2
RL=2*RS:-0.1:RS/10;
I = VS./(RS+RL);
I2 = I.^2 ;
PL = I2.*RL ;
subplot(2,1,1)
plot(I,PL)
grid
title('Power vs Current')
xlabel('I , mA')
ylabel('Power, mW')
subplot(2,1,2)
plot(I2,PL)
grid
title('Power vs Square of Current')
xlabel(' Square of I ')
ylabel('Power, mW')


I I2 PL
3.3333 11.1111 22.2222
3.4483 11.8906 22.5922
3.5714 12.7551 22.9592
3.7037 13.7174 23.3196
3.8462 14.7929 23.6686
4.0000 16.0000 24.0000
4.1667 17.3611 24.3056
4.3478 18.9036 24.5747
4.5455 20.6612 24.7934
4.7619 22.6757 24.9433
5.0000 25.0000 25.0000
5.2632 27.7008 24.9307
5.5556 30.8642 24.6914
5.8824 34.6021 24.2215
6.2500 39.0625 23.4375
6.6667 44.4444 22.2222
7.1429 51.0204 20.4082
7.6923 59.1716 17.7515
8.3333 69.4444 13.8889
9.0909 82.6446 8.2645

You might also like