How to apply bandpass filter to a single data type?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rida Alfonso
el 19 de Sept. de 2020
Comentada: Star Strider
el 20 de Sept. de 2020
We have recorded signals but when i load the signal into matlab, the data type is single. I want to apply bandpass filter and notch filter to these single data type signals. I have applied both the filters to the signals after converting them to double but it alters the results. Thats why i was curious if we can use band pass and notch filters on single data types.
0 comentarios
Respuesta aceptada
Star Strider
el 19 de Sept. de 2020
Yes. You can use single.
See the documentation section for x . This specifically refers to the Signal Processing Toolbox bandpass documentation, however it applies to all the related functions.
I do not understand how converting them to double would alter the results, however I do not have your signals to experiment with. If you are using something other than the Signal Processing Toolbox, it would be helpful to know that.
10 comentarios
Star Strider
el 20 de Sept. de 2020
As always, my pleasure!
Filters by definition remove signal energy, so the waveform will change after the filter is applied. The change depends on the filter characteristics.
Más respuestas (0)
Ver también
Categorías
Más información sobre Spectral Measurements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!