interpolation and downsampling .mat recorded data
이전 댓글 표시
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
dpb
2014년 5월 21일
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.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!