plot the signal in three ways

์กฐํšŒ ์ˆ˜: 2 (์ตœ๊ทผ 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 Center ๋ฐ File Exchange์—์„œ Annotations์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

์ œํ’ˆ


๋ฆด๋ฆฌ์Šค

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by