Plotting a Response of the Following system
2 views (last 30 days)
Show older comments
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, ]
0 Comments
Accepted Answer
Chunru
on 22 Sep 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)
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!