plot the signal in three ways

6 次查看(过去 30 天)
Mohammed Alqahtany
Mohammed Alqahtany 2023-10-19
评论: Sam Chak 2023-10-19
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
Dyuman Joshi 2023-10-19
As this clearly looks like a homework assignment, show us what have you attempted yet.
Sam Chak
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 CenterFile Exchange 中查找有关 Signal Generation and Preprocessing 的更多信息

标签

产品


版本

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by