Plot step response of discrete signal

조회 수: 9 (최근 30일)
Luke Brown
Luke Brown 2021년 9월 22일
편집: Shayan Sepahvand 2021년 9월 22일
Is there a way to plot the step response of y[n] = y[n-2]+x[n-1]?

답변 (1개)

Shayan Sepahvand
Shayan Sepahvand 2021년 9월 22일
편집: Shayan Sepahvand 2021년 9월 22일
Dear Luke,
If you take the z-transform of both sides, you will get:
then define a vector using ones(.) and set it as X. For example,
X = ones(100,1);
then use this code
Y = filter([0, 1], [1, 0, -1], X);
Finally it seems a good idea to plot Y with;
stem(Y)

카테고리

Help CenterFile Exchange에서 Pulse and Transition Metrics에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by