how to plot magnitude and phase spectrum? my output function is

1 view (last 30 days)
𝑦[𝑛] = ∑ 𝑥[𝑛 − 𝑘]
𝑘=0 to 5
  3 Comments
muhammad ahmad
muhammad ahmad on 13 Oct 2020
want to plot magnitude and phase spectrum of that output function.

Sign in to comment.

Answers (1)

Jon
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
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.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!