plot the signal in three ways
1 view (last 30 days)
Show older comments
Consider the following signal: 𝑥[𝑛] = {−1,0,1,2,3,4} , 0 ≤ 𝑛 ≤ 5.
1. Plot the signal 𝑥[𝑛].
2. Write a complete code to flip (fold) the signal 𝑥[𝑛] with respect to y-axis (vertical axis) so that we obtain 𝑥[−𝑛].
3. Add the original signal to the flipped signal, that is: 𝑥[𝑛] + 𝑥[−𝑛] and plot them in the same plot; the resultant plot should have even symmetry. 4. Subtract the flipped signal from the original signal, that is: 𝑥[𝑛] − 𝑥[−𝑛] and plot them in the same plot; the resultant plot should have odd symmetry.
Hint: use the MATLAB function fliplr to flip the signal with respect to y-axis (vertical axis).
2 Comments
Dyuman Joshi
on 19 Oct 2023
As this clearly looks like a homework assignment, show us what have you attempted yet.
Sam Chak
on 19 Oct 2023
Hey @Mohammed Alqahtany, have you provided the necessary information in the following link? This will allow me to start fixing the mistakes in your code.
After thatm we can come back to help you addressing this question. I'm serious.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!