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

์กฐํšŒ ์ˆ˜: 1 (์ตœ๊ทผ 30์ผ)
muhammad ahmad
muhammad ahmad 2020๋…„ 10์›” 13์ผ
๋Œ“๊ธ€: Jon 2020๋…„ 10์›” 13์ผ
๐‘ฆ[๐‘›] = โˆ‘ ๐‘ฅ[๐‘› โˆ’ ๐‘˜]
๐‘˜=0 to 5
  ๋Œ“๊ธ€ ์ˆ˜: 3
muhammad ahmad
muhammad ahmad 2020๋…„ 10์›” 13์ผ
want to plot magnitude and phase spectrum of that output function.
muhammad ahmad
muhammad ahmad 2020๋…„ 10์›” 13์ผ
how can i write that output in matlab??

๋Œ“๊ธ€์„ ๋‹ฌ๋ ค๋ฉด ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.

๋‹ต๋ณ€ (1๊ฐœ)

Jon
Jon 2020๋…„ 10์›” 13์ผ
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
muhammad ahmad
muhammad ahmad 2020๋…„ 10์›” 13์ผ
Jon
Jon 2020๋…„ 10์›” 13์ผ
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.

๋Œ“๊ธ€์„ ๋‹ฌ๋ ค๋ฉด ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.

์นดํ…Œ๊ณ ๋ฆฌ

Help Center ๋ฐ File Exchange์—์„œ Spectral Measurements์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

Community Treasure Hunt

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

Start Hunting!

Translated by