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

𝑦[𝑛] = ∑ 𝑥[𝑛 − 𝑘]
𝑘=0 to 5

3 Comments

Please explain what you have tried so far and what problems you encountered
want to plot magnitude and phase spectrum of that output function.
how can i write that output in matlab??

Sign in to comment.

Answers (1)

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

𝑦[𝑛] = ∑ 𝑥[𝑛 − 𝑘] , limits k= 0 to 5. How can i define this in matlab?using sym
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.

Asked:

on 13 Oct 2020

Commented:

Jon
on 13 Oct 2020

Community Treasure Hunt

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

Start Hunting!