How to do logarithmic downsampling
조회 수: 6 (최근 30일)
이전 댓글 표시
How to downsample the data in a vector by only keeping n samples per each log-cycle? For example I would like to downsample the data by keeping only 30 samples between 1e-4 and 1e-3 and similarly 30 samples between 1e-3 and 1e-2, and 30 samples between 1e-2 and 1e-1, and so on. If the number of original samples in each log cycle is already less than 30, then keep all of those.
댓글 수: 1
Jonas
2021년 4월 26일
you could calculate floor(log10(data)) which gives you the decade in which the numbers were originally. then you could check the number of occurences per decade and decide which decade appears more than 30 times and remove those entries.
답변 (0개)
참고 항목
카테고리
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!