plot the signal in three ways
6 次查看(过去 30 天)
显示 更早的评论
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 个评论
Dyuman Joshi
2023-10-19
As this clearly looks like a homework assignment, show us what have you attempted yet.
Sam Chak
2023-10-19
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.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Signal Generation and Preprocessing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!