How do i code y[n]?
4 次查看(过去 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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!