Professional Documents
Culture Documents
Sinusoidal Sequence
2
1.5
1
Amplitude
0.5
0
-0.5
-1
-1.5
-2
10
15
20
25
Time index n
30
35
40
P=
2
A
2
P=
1.5
2
P = 1.125
TQ1.21 What are the purposes of the axis and grid commands?
Axis command determines the lengths of each axes. Control axis scaling and
appearance.
Grid command shows the grid
TQ1.22 Modify Program P1_4 to generate a sinusoidal sequence of frequency 0.9
and display it. Compare this new sequence with the one generated in TQ1.17. Now,
modify Program P1_4 to generate a sinusoidal sequence of frequency 1.1 and
display it. Compare this new sequence with the one generated in TQ1.17. Comment
on your results.
Frequency = 0.9
Sinusoidal Sequence
2
1.5
1
Amplitude
0.5
0
-0.5
-1
-1.5
-2
Frequency = 1.1
10
15
20
25
Time index n
30
35
40
Sinusoidal Sequence
2
1.5
1
Amplitude
0.5
0
-0.5
-1
-1.5
-2
10
15
20
25
30
35
40
Time index n
An increase in frequency
suggests
an
increase in the number of cycles per seconds, thus the newly generated graphs with
f=0.9, and f=1.1 shows greater number of cycles.
TQ1.23 Modify the above program to generate a sinusoidal sequence of length 50,
frequency 0.08, amplitude 2.5, and phase shift 90 degrees and display it. What is
the period of this sequence?
2.5
2
1.5
1
0.5
0
-0.5
-1
-1.5
-2
-2.5
10
15
20
25
Period=
Period=
1
f
1
0.8
Period = 1.25
30
35
40
TQ1.24 Replace the stem command in Program P1_4 with the plot command and
run the program again. What is the difference between the new plot and the one
generated in T1.17?
Sinusoidal Sequence
2
1.5
1
Amplitude
0.5
0
-0.5
-1
-1.5
-2
10
15
20
25
Time index n
30
35
40
The graphs characteristics are still the same except that the function was
plotted with a line, thus showing a continuous sine wave.
TQ1.25 Replace the stem command in Program P1_4 with the stairs command and
run the program again. What is the difference between the new plot and those
generated in TQ1.17 and TQ1.24?
Sinusoidal Sequence
2
1.5
1
Amplitude
0.5
0
-0.5
-1
-1.5
-2
10
15
20
25
Time index n
30
35
40
The graphs characteristics are still the same except that the function
displays a stairstep line sinusoidal graph. Stairstep plots are useful for
drawing time history plots of zero-order-hold digital sampled-data
systems.