Reduce data points from 200 to 108
130 次查看(过去 30 天)
显示 更早的评论
I have a data series with 200 data points and I need to compress this information to 108 data points. I don't think I can use a moving average filter as the window wouldn't be an integer so is there a way in MATLAB to do this?
0 个评论
采纳的回答
Star Strider
2019-11-21
I have no idea what your data are or what you want to do with them, other than reduce the number of them.
3 个评论
更多回答(1 个)
Daniel M
2019-11-21
编辑:Daniel M
2019-11-21
Do you want to:
- truncate your signal?
- downsample or resample
- interpolate
- something else?
Truncate example:
t = 1:200;
x = rand(1,200);
x2 = x(1:108);
2 个评论
Daniel M
2019-11-21
That's what resampling function is for. Star Strider has responded under his answer.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multirate Signal Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!