You are on page 1of 7

TQ1.17 Run Program P1_4 to generate the sinusoidal sequence and display it.

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

TQ1.18 What is the frequency of


this sequence and how can it be
changed? Which parameter controls the phase of this sequence? Which parameter
controls the amplitude of this sequence? What is the period of this sequence?
Frequency = 0.1, you can change the frequency by changing the input value.
Performing again the command/operation the frequency value was involved to
display the change.
Phase = 0, you can change the frequency by changing the input value. Perform
again the command/operation the frequency phase value was involved to display
the change.
A = 1.5
Period = 10
TQ1.19 What is the length of this sequence and how can it be changed?
Horizontal length = 40 (0 to 40)
Vertical length = 4 (-2 to 2)
TQ1.20 Compute the average power of the generated sinusoidal sequence.
Power (Sine Wave) = 1/2 * (peak amplitude)^2

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.

You might also like