How to do logarithmic downsampling

7 次查看(过去 30 天)
H R
H R 2021-4-26
评论: Jonas 2021-4-26
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
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 CenterFile Exchange 中查找有关 Multirate Signal Processing 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by