Professional Documents
Culture Documents
Objectives:
This activity allows the students to plot a unit ramp sequence using Octave or MATLAB.
Type and execute the following code . Copy the screen output of the program to the
corresponding space provided , and answer the questions that follow.
Go to pdfdrive.com , from books about Digital Signal Processing plot 10 examples of Unit Ramp
sequence. Copy the problem from the book and plot it using Octave/Matlab as we have done in
this activity.
1. Figure 2.4 Graphical representation of n the unit ramp signal made using equation using x(n) = r(n-
0), -5 < n < 5 [1]
2. Unit ramp signal (3-b) for x(n) = r(n-2), -5 < n < 5 [2]
ECEN 75
DR. EDWIN R. ARBOLEDA
4. Generation of unit ramp discrete function for x(n) = r(n-0), -5 < n < 20 [4]
ECEN 75
DR. EDWIN R. ARBOLEDA
6. Unit Ramp Signal in MATLAB for x(n) = r(n-0), -20 < n < 20 [6]
ECEN 75
DR. EDWIN R. ARBOLEDA
8. Practice -The Ramp Sequence- (2) Generate and plot a shifted version of ramp sequence, r[n-5]. [8]
ECEN 75
DR. EDWIN R. ARBOLEDA
9. Unit Ramp Signal for x(n) = r(n-0), -10 < n < 9 [9]
10. Generation of Ramp Sequence x(n) = r(n-0), -0 < n < 0.1 [10]
ECEN 75
DR. EDWIN R. ARBOLEDA
References
[1] J. G. P. &. D. G. Manolakis, "Digital Signal Processing: Principles, Algorithms & Applications (3rd
Ed.)," Northeastern University & Boston University, 1995, p. 45.