how to plot magnitude and phase spectrum? my output function is
1 view (last 30 days)
Show older comments
𝑦[𝑛] = ∑ 𝑥[𝑛 − 𝑘]
𝑘=0 to 5
3 Comments
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
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.
See Also
Categories
Find more on Spectral Measurements 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!