is it possible to upsampling or down sampling by a non-integer number?
Mostrar comentarios más antiguos
I have two files that I need to synchronise one is sampled at every 3ms = 1/0.003 = 333.33Hz and one at every 10ms = 1/0.01 = 100Hz. I have not been able to find a matlab command in basic or signal processing toolbox to either upsample to 100Hz to 333.33 or downsample 333.33 to 100Hz. Can anyone help?
Respuesta aceptada
Más respuestas (2)
Matt J
el 14 de Mayo de 2013
1 voto
You need to interpolate, e.g., using interp1() or griddedInterpolant()
2 comentarios
Justine Nyakundi
el 30 de Ag. de 2017
this gives an error 'not monotonically increasing'
Matlab's upsample and downsample are not really useful here. I'd prefer the alreayd mentioned interp1, but decimate would perform an anti-aliasing also.
4 comentarios
MAT-Magic
el 10 de En. de 2020
Dear Jan,
I have a signal sampled at 26 Hz. I want to downsample that signal to 5.2 Hz. Do you know that how to do it? Thanks in advance.
Walter Roberson
el 24 de Oct. de 2020
resample(signal, 5, 1)
kim zheng cho
el 21 de Dic. de 2022
Hi and good day
I have a signal sampled at 4552 Hz. I want to downsample that signal to 4096 Hz. Do you know that how to do it?
thank you
Walter Roberson
el 21 de Dic. de 2022
resample 569, 512
Categorías
Más información sobre Multirate Signal Processing 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!