필터 지우기
필터 지우기

impulse response for this problem

조회 수: 3 (최근 30일)
ahmed allaheani
ahmed allaheani 2018년 3월 2일
답변: ahmed allaheani 2018년 3월 3일
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
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일
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');

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by