Changing frequency of input data
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Eoin Lyden
el 19 de En. de 2021
Comentada: Eoin Lyden
el 20 de En. de 2021
The data that I am loading in is at a frequency of 128Hz, I need to change this so that the data is at 100Hz or 50Hz, is there a simple way to do this?
The input data is loaded in as a time series at 128Hz, I want to keep it in this form but with a new frequency.
Thanks in advance.
0 comentarios
Respuesta aceptada
Fangjun Jiang
el 19 de En. de 2021
Editada: Fangjun Jiang
el 19 de En. de 2021
resample()
timeseries object also has resample() method. see
web(fullfile(docroot, 'matlab/ref/timeseries.resample.html'))
tsin = timeseries([1.1 2.9 3.7 4.0 3.0]',1:5);
tsout = resample(tsin,[1 1.5 3.5 4.5 4.9]);
tsindata = tsin.Data
Más respuestas (0)
Ver también
Categorías
Más información sobre Time Series 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!