I have data for each milli second. How can I average the 1000 samples and convert in to 1 sec? I got 322 sec data. 1K samples for each second.
1 回表示 (過去 30 日間)
古いコメントを表示
I am having 322759 rows. It means 322 seconds. How can I average the mili seconds data and convert in to seconds. I just want 322 rows(322 seconds). Accordingly the next column should also average up according to the time. Attaching a sample
0 件のコメント
回答 (3 件)
Fangjun Jiang
2023 年 4 月 7 日
Data=(1:25)';
Ten=10;
NofData=floor(length(Data)/Ten)*Ten;
temp=reshape(Data(1:NofData),Ten,[])
av=mean(temp)
0 件のコメント
埃博拉酱
2023 年 4 月 8 日
You may want to use imresize:
Table=readmatrix('ms_to_sec.csv');
Table=imresize(Table,[322,2]);
Table(:,1)=1:322;
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!