How do i code y[n]?

3 visualizzazioni (ultimi 30 giorni)
Enes Ozdogan
Enes Ozdogan il 28 Nov 2021
Commentato: Image Analyst il 29 Nov 2021
y[n] = x[n] + 0.4x[n-400] + 0.4x[n-800]

Risposte (1)

Image Analyst
Image Analyst il 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 Commenti
Semih Erken
Semih Erken il 29 Nov 2021
how to convolve this without conv function
Image Analyst
Image Analyst il 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.

Accedi per commentare.

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by