- Read data from csv file using readtable, suppose you store it in variable T and the two column of tables are C1 and C2. To access first column use , T.C1 and for 2nd use T.C2
- For sliding window, use conv or filter maybe with (ones(1,30))
- After filtering, apply threshold by comparing result of step 2 with threshold i.e 1
Sliding window binning and average
5 次查看(过去 30 天)
显示 更早的评论
Hi all, I have data in a .csv file with two difderent columns and each column has 245438 row. Please kindly help me to find a MATLAB code to bin the first column with a sliding window of 30 and threshold 1 and make an average of corresponding data in second column for each bin.
0 个评论
回答(1 个)
Mehmed Saad
2020-4-20
6 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Performance and Memory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!