How do i code y[n]?
4 views (last 30 days)
Show older comments
y[n] = x[n] + 0.4x[n-400] + 0.4x[n-800]
0 Comments
Answers (1)
Image Analyst
on 28 Nov 2021
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 Comments
Image Analyst
on 29 Nov 2021
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.
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!