interpolation and downsampling .mat recorded data
Mostrar comentarios más antiguos
I have a set of data recorded in a mat file. the data was recorded at a 50ms rate and i am replaying the data in a simulation that is running at 8 ms. not working well. so i need to interpolate this data from 50 to 1 then downsample it from 1 to 8. how do i do that? when i open the mat file it has 1x1 structure for X and 1z14 structure for Y. the Y is where the parameters are and each parameter data value is 1x493 where the data values for that parameter reside.
1 comentario
dpb
el 21 de Mayo de 2014
If you have the Signal Processing Toolbox, look at
doc resample
If not, why not just interpolate to the rate desired directly instead of to 1 Hz and then resample there?
doc interp1
Just build the target vector at the desired dt given the sampling rate and sampled data at 50 ms.
Respuestas (0)
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!