Concatenated Segmentation using Overlapping Windows
1 回表示 (過去 30 日間)
古いコメントを表示
I have a N-dimensional timeseries data with m samples (Nxm). I would like to sample the table with a fixed sized window of 50 samples with a shift of 5 samples, concatanating each sample in another table. What is an efficient algorithm to run this process?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/515067/image.jpeg)
1 件のコメント
KALYAN ACHARJYA
2021 年 2 月 10 日
Can you explain with numeric data, considering any sample 1D array data?
回答 (1 件)
Mathieu NOE
2021 年 2 月 10 日
hello
example below :
% dummy data
data = rand(80,5);
shift = 5; % nb of samples for averaging
buffer = 50; % nb of samples for averaging
for ci=1:fix((length(data)-buffer)/shift +1)
start_index = 1+(ci-1)*shift;
stop_index = min(start_index+ buffer,length(data));
out_data{ci} =data(start_index:stop_index,:); %
figure(ci),
plot(out_data{ci});
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Time Series についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!