Plotting a Response of the Following system
2 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Chunru
2021 年 9 月 22 日
% 𝑦[𝑛] = −𝑦[𝑛 − 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)
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!