How do i code y[n]?

回答(1 个)

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 个评论

If you want convolution, use conv().
how to convolve this without conv function
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.

请先登录,再进行评论。

产品

版本

R2021b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by