how to plot magnitude and phase spectrum? my output function is
Show older comments
𝑦[𝑛] = ∑ 𝑥[𝑛 − 𝑘]
𝑘=0 to 5
3 Comments
Jon
on 13 Oct 2020
Please explain what you have tried so far and what problems you encountered
muhammad ahmad
on 13 Oct 2020
muhammad ahmad
on 13 Oct 2020
Answers (1)
Jon
on 13 Oct 2020
If you have the control system toolbox you could do something like:
% define a discrete time system z^-5+z^-4+z^-3+z^..1 with a sample time of 1 sec
f = tf([1 1 1 1 1 1],[1 0 0 0 0 0],1)
% plot its frequency response
bode(f)
3 Comments
muhammad ahmad
on 13 Oct 2020
Edited: muhammad ahmad
on 13 Oct 2020
muhammad ahmad
on 13 Oct 2020
Jon
on 13 Oct 2020
I'm sorry I don't have the symbolic toolbox and am not familiar with it so I can't be of assistance to you with that.
This looks like a homework problem. Of course no one can do your homework for you, but once you have some code written and can be more specific about the problems you are having I'm sure you can get some help from MATLAB answers.
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!