Lab Activity 3 - Bsece 3-1 - Gomez

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 11

ECEN 75

DR. EDWIN R. ARBOLEDA

LAB ACTIVITY 3 - Unit Ramp Sequence

Name: Gomez, Christian Benedict B. _______________ Date Performed: 05/10/2022_______________

Section: BSECE 3-1______________________________ Date Submitted: 05/10/2022_______________

Professor: Sir Edwin Arboleda______________________ Time Allocation: 30 minutes

Objectives:

This activity allows the students to plot a unit ramp sequence using Octave or MATLAB.

Watch and Learn

Type and execute the following code . Copy the screen output of the program to the
corresponding space provided , and answer the questions that follow.

Unit Ramp Sequence

A unit ramp sequence is a signal that increases as the n increases.

1. Plot x(n) = r [n] , -10 < n < 10


ECEN 75
DR. EDWIN R. ARBOLEDA

2. What is the screen output after executing the code above :

3. Plot x(n) = r [n-7] , -10 < n < 10.


ECEN 75
DR. EDWIN R. ARBOLEDA

5. What is the screen output after executing the code above :


ECEN 75
DR. EDWIN R. ARBOLEDA

6. Plot x(n) = r(n+8) , -10 < n < 10.

7. What is the screen output after executing the code above :


ECEN 75
DR. EDWIN R. ARBOLEDA

POST ACTIVITY 1.1

Within Class Hours

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.

Cite your sources using Mendeley, IEEE format.


ECEN 75
DR. EDWIN R. ARBOLEDA

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

3. Ramp Function (1.33) for x(n) = r(n-0), -8 < n < 8 [3]

4. Generation of unit ramp discrete function for x(n) = r(n-0), -5 < n < 20 [4]
ECEN 75
DR. EDWIN R. ARBOLEDA

5. Unit Ramp for x(n) = r(n-0), 0 < n < 3 [5]

6. Unit Ramp Signal in MATLAB for x(n) = r(n-0), -20 < n < 20 [6]
ECEN 75
DR. EDWIN R. ARBOLEDA

7. Unit Ramp function x(n) = r(n-0), -0 < n < 30 [7]

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.

[2] "CPP," [Online]. Available: https://www.cpp.edu/~zaliyazici/ece308/MatLab.html. [Accessed 05


October 2022].

[3] "Pearl-hifi," 28 October 2007. [Online]. Available:


https://pearl-hifi.com/06_Lit_Archive/14_Books_Tech_Papers/Mandil_Asif/
Continuous_and_Discrete_Time_Signals_and_Systems.pdf?
fbclid=IwAR1NZmfNoeKS0u3O26qZfEv0X1eYwKcsvsJEZncWjqM8P2OXxwqZS6ucMgQ. [Accessed
2022 October 2022].

[4] S. I. Abood, "Google," CRC Press, 20 January 2020. [Online]. Available:


https://books.google.com.ph/books?id=uvTKDwAAQBAJ&pg=PR2&dq=unit%20ramp%20sequence
%20matlab&hl=en&sa=X&ved=2ahUKEwichuXP3sf6AhUpTGwGHVb_AwwQ6AF6BAgHEAI&fbclid=I
wAR00y_SZyOEQjKue8QKCJPDvZ2d3xcl4ZwpNwff8qnZXEeDqvKLZYKQkGd4#v=onepage&q=unit
%20ramp%20sequence. [Accessed 05 October 2022].

[5] Ankur, "Ankurm," 05 August 2015. [Online]. Available: https://ankurm.com/plotting-unit-impulse-


unit-step-unit-ramp-and-exponential-function-in-matlab/?
fbclid=IwAR3QxquKrMXJOm4LX23wrPPfm4jgRUTWnYUI8uWzV9bbptjqRHJvRpUWrgg. [Accessed
04 October 2022].

[6] Irawen., "Matlabcoding," [Online]. Available: https://www.matlabcoding.com/2018/11/unit-ramp-


signal-in-matlab.html . [Accessed 05 October 2022].

[7] NA, "Blogspot," [Online]. Available: http://wec-ee-2k10.blogspot.com/2013/09/plot-of-unit-step-


unit-impulse-and-unit.html. [Accessed 05 October 2022].

[8] aarthi, "ieee.org," 28 September 2005. [Online]. Available:


https://www.ewh.ieee.org/r1/ct/sps/PDF/MATLAB/chapter3.pdf. [Accessed 05 October 2022].

[9] A. Munshi, "geeksforgeeks," 02 September 2020. [Online]. Available:


https://www.geeksforgeeks.org/generating-basic-discrete-time-signals/. [Accessed 05 October
2022].

[10] N. Naveen Kumar, "mrcet," [Online]. Available: https://mrcet.com/downloads/ECE/labmanuals/BS


%20LAB-18.pdf. [Accessed 05 October 2022].

You might also like