How do i code y[n]?
7 ビュー (過去 30 日間)
古いコメントを表示
y[n] = x[n] + 0.4x[n-400] + 0.4x[n-800]
0 件のコメント
回答 (1 件)
Image Analyst
2021 年 11 月 28 日
Use parentheses instead of brackets:
n = 801; % n must be at least this big.
y(n) = x(n) + 0.4 * x(n-400) + 0.4 * x(n-800);
3 件のコメント
Image Analyst
2021 年 11 月 29 日
Then I guess it must be your homework assignment. If you're not allowed to use conv(), you'll have to use a for loop.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!