How to trim time series?
37 ビュー (過去 30 日間)
古いコメントを表示
X = rand(1,128)-0.5;
fs = 1000;
Ts = 1/fs;
Y = lowpass(X,100,fs);
plot(Y);
Z = conv(X,Y);
THE length of Z is 255
I want to trim the ends off Z so that it has a length of 128.
What do I have to do?
0 件のコメント
採用された回答
Ravi Narasimhan
2021 年 10 月 2 日
編集済み: Ravi Narasimhan
2021 年 10 月 2 日
Are you trying to discard elements 129 through 255?
If so,
Z(129:end) = []; % Discard the unwanted elements
or
Z=Z(1:128); % Keep the desired elements
should do it.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Sensors and Transducers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!