How to decimate by rows in a dataset ?
3 views (last 30 days)
Show older comments
Hi I have dataset of 1918975 rows and 10 columns. I need to resample this data without aliasing effect. I found the solution was decimate. But It doesnot work with whole matrix. I only accept vectors. So how can i do this by rows to decimate something like 19189 rows and 10 columns. If there is other method to resample you are welcome to give your idea.
0 Comments
Answers (1)
Image Analyst
on 16 Jul 2015
I don't know how you can avoid aliasing completely, but you can subsample like this
smallM = M(startingRow : stepRow : endingRow);
For example to take every other row:
smallM = M(1:2:end); % Or M(2:2:end);
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!