admin管理员组文章数量:1404942
My strain time-domain data shown in figure 1 contains significant high-frequency noise. The segment I focus on is the strain rising phase shown in figure 2, where the amplitude can be truncated at 1e4. When applying FFT-based low-frequency filtering, I found that the selected time duration of the filtering region significantly affects the filtering results. How should I resolve this issue?
signal-data
clc;clear;close all;
%% load data
load('20250310signal1.mat');
t=ttt';
y=yyy';
%%
fs = fix(1/(t(2)-t(1)));
n = length(y);
Y = fft(y);
f = (0:n-1)*(fs/n);
%% Low-pass filtering (retain DC and low-frequency components)
cutoff = 12500; % cut-off frequency
Y_filtered = Y;
Y_filtered(f > cutoff) = 0;
%% Inverse FFT to obtain filtered signal
y_filtered = ifft(Y_filtered, 'symmetric');
%% Plot results
figure;
plot(t, y);hold on;
plot(t, y_filtered);
xlabel('Time (s)');
ylabel('Amplitude');
legend('data','filtered data')
本文标签: matlabHow to use lowfrequency filtering to process the rising signalStack Overflow
版权声明:本文标题:matlab - How to use low-frequency filtering to process the rising signal - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744849468a2628409.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论