Reduce data points from 200 to 108
조회 수: 114 (최근 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!