How to code signals? how would you code y[n] = x[n] + 0.4x[n-4096]?

1 visualización (últimos 30 días)
Paula Penullar
Paula Penullar el 18 de Sept. de 2020
Respondida: Abhishek Gupta el 23 de Sept. de 2020
%sound experianced: y[n] = x[n] + 0.4x[n-4096]
%use sound file handel.mat .... sampled at 8192 samples/sec
%compare with signal observed in the concert hall
I am to use y[n] and compare it to handel.mat. How would I code y[n]? I tried :
y= [0 zeros(1,1)]+ 0.4*[0 0 4096]; %y[n] = x[n] + 0.4x[n-4096]
but that was wrong
  1 comentario
John D'Errico
John D'Errico el 18 de Sept. de 2020
You probably need first to learn that MATLAB indexing uses parens, thus (), not square brackets, [].

Iniciar sesión para comentar.

Respuestas (1)

Abhishek Gupta
Abhishek Gupta el 23 de Sept. de 2020
Hi,
Referring to the following documentation link, which might help you in resolving the issue: -https://www.mathworks.com/help/matlab/matlab_prog/matlab-operators-and-special-characters.html

Categorías

Más información sobre AI for Signals en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by