impulse response for this problem

how can i obtain the impulse response and the plot: y(n)=x(n)-0.6y(n-1),for y(-1)=0
and n=[-2:10]
i tried to understand it from the explanation provided on mathworks but it seems it is hard for a beginner
thank you for the help

7 件のコメント

Birdman
Birdman 2018 年 3 月 2 日
What is x(n)?
ahmed allaheani
ahmed allaheani 2018 年 3 月 2 日
x(n) is the impulse input
Birdman
Birdman 2018 年 3 月 2 日
So, is it always 1?
ahmed allaheani
ahmed allaheani 2018 年 3 月 2 日
no, the n value change from -2 to 10 in steps of 1
Torsten
Torsten 2018 年 3 月 2 日
Birdman means x, not n.
ahmed allaheani
ahmed allaheani 2018 年 3 月 2 日
x(n) value is 1 at zero, and zero elsewhere
ahmed allaheani
ahmed allaheani 2018 年 3 月 2 日
編集済み: ahmed allaheani 2018 年 3 月 2 日
i mean if i plot(n,x) then x=1 when n=0, anywhere else it will be zero. a delta function

サインインしてコメントする。

回答 (1 件)

ahmed allaheani
ahmed allaheani 2018 年 3 月 3 日

0 投票

i got some help from an expert, and this is the solution:
n=[-2:10];% time vector
x=n==0; % impulse input
y=n==-1;% output array with initial condition
x=double(x);
y=double(y);
for i=2:length(n)
y(i)=x(i)-0.6*y(i-1) % system equation
end
stem(n,y); % output plot
axis([-2 10 -2 2]);
title('output');

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

質問済み:

2018 年 3 月 2 日

回答済み:

2018 年 3 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by