EE Comp MATLAB Activity 3
EE Comp MATLAB Activity 3
EE Comp MATLAB Activity 3
COLLEGE OF ENGINEERING
Lambarte, Reneboy M.
BSEE 4-1
A. Figure Command
Look for 3 functions and plot them individually using the figure command.
C. Hold on command
Look for 4 trigonometric equations (preferably sine and cosine) and plot them in
one graph using the hold on command.
D. Polar Plots
Look for 3 polar equations and plot them individually using the figure command.
A. The Figure Command
Plot of 2cos(5t)+3sin(5t)
4
1
Amplitude
-1
-2
-3
-4
-30 -20 -10 0 10 20 30
time
Figure 1
Plot of 5e-t
3
1
Amplitude
-1
-2
-3
-25 -20 -15 -10 -5 0 5 10 15 20 25
time
Figure 2
Plot of 3et+sin(t)
4
1
Amplitude
-1
-2
-3
-4
-25 -20 -15 -10 -5 0 5 10 15 20 25
time
Figure 3
B. Logarithmic Plots using the Subplot Command
Amplitude,x
0.05 0.05
0 0
-1 0 1 2 0
10
Time,t Time,t
Logarithmic Y - Axis Logarithmic Plot
Amplitude,x
Amplitude,x
-50 -50
10 10
-1 0 1 2 0
10
Time,t Time,t
C. Hold on command
Multiple Graphs
20
7cos(2t)
8cos(9t)
15
10sin(2t)
2csc(2t)
10
5
Amplitude
-5
-10
-15
-20
-20 -15 -10 -5 0 5 10 15 20
time(s)
D. Polar Plots
Basic Flower 1
90 8
120 60
6
150 4 30
180 0
210 330
240 300
270
150 1 30
0.5
180 0
210 330
240 300
270
Basic Flower 3
90 2
120 60
1.5
150 1 30
0.5
180 0
210 330
240 300
270