Plotting a Response of the Following system

2 visualizaciones (últimos 30 días)
John Doe
John Doe el 22 de Sept. de 2021
Comentada: John Doe el 22 de Sept. de 2021
How can i plot the response of this system? 𝑦[𝑛] = −𝑦[𝑛 − 1] + 5𝑥[𝑛] + 2𝑥[𝑛 − 3]. From an input 𝑥[𝑛] = [5, 1, 2, 3, 1, 0, 1, 2, −1, ]

Respuesta aceptada

Chunru
Chunru el 22 de Sept. de 2021
% 𝑦[𝑛] = −𝑦[𝑛 − 1] + 5𝑥[𝑛] + 2𝑥[𝑛 − 3].
b = [5 0 0 2]; % 5x(n), 2x(n-3)
a = [1 1]; % y(n) + y(n-1)
% From an input 𝑥[𝑛] = [5, 1, 2, 3, 1, 0, 1, 2, −1, ]
x = [5, 1, 2, 3, 1, 0, 1, 2, -1];
y = filter(b, a, x);
stem(y)
  1 comentario
John Doe
John Doe el 22 de Sept. de 2021
Thank you very much for the fast and precise answer. More power to you.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matched Filter and Ambiguity Function en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by