Lowpass filter not making any difference
Mostrar comentarios más antiguos
I'm new to filtering, trying to use a low-pass filter to filter a sine wave with another high frequency sine wave on top of it. Using highpass(valArray, .03) I can effectively isolate the higher frrequency. But lowpass(valArray, .03) just appears to return the original signal (or something close to it).
It's possible my setup is incomplete. I'm simply using the lowpass() and highpass() commands. But seems odd that the highpass filter works fine while the lowpass filter fails.
lowpass(valArray, .03);

highpass(valArray, .03)

4 comentarios
Cris LaPierre
el 5 de Abr. de 2023
Please include the code you use to create your signals.
Nick Li
el 5 de Abr. de 2023
So your data is something like this.
millis = linspace(1,33850,17000);
valArray = 3600 * sin(mod(millis,3600)/3600 * 6.28) + 200 * sin(mod(millis,100)/100 * 6.28);
figure
lowpass(valArray, .03);
figure
highpass(valArray, .03);
Nick Li
el 6 de Abr. de 2023
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Statistics and Linear Algebra en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!








