Windowing a sine signal

4 visualizaciones (últimos 30 días)
Suraj Narayan
Suraj Narayan el 18 de Oct. de 2020
Comentada: Ameer Hamza el 18 de Oct. de 2020
I dont know what is windowing. Or it is writen wrong, So correct me if it is wrong and help me to solve this problem.
I tried but it is out-off my knowledge.

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 18 de Oct. de 2020
Editada: Ameer Hamza el 18 de Oct. de 2020
This shows an example of windowing a signal
t = linspace(-2*pi, 2*pi);
y = sin(t);
window = (t-0 > 0) - (t-2 > 0);
windowed_y = window.*y;
subplot(2,1,1)
plot(t, y);
subplot(2,1,2)
plot(t, windowed_y);
  2 comentarios
Suraj Narayan
Suraj Narayan el 18 de Oct. de 2020
Thanks it's a great help...
Ameer Hamza
Ameer Hamza el 18 de Oct. de 2020
I am glad to be of help!

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by