Design a low pass filter for time domain data
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi,all I wish to design a low pass filter for the time domain data.I have transformed the data into frequency domain, which showed below. But I have no idea on how to design a low pass filter, because I can not determine the sampling frequency and cutoff frequency. The data is a 87238x1 vector. The total time for recording this data is 300 seconds.

댓글 수: 0
채택된 답변
Star Strider
2016년 8월 9일
You already have much of the information you need, particularly the length of the vector and the total time.
Assuming a constant sampling interval, you can calculate these:
Lv = 87238; % Data Vector Length (samples)
Tv = 300; % Data Vector Length (sec)
Ts = Tv/Lv; % Sampling Interval (sec/sample)
t = linspace(0, 1, Lv)*Ts; % Time Vector (sec)
Fs = 1/Ts; % Sampling Frequency (Hz)
Fn = Fs/2; % Nyquist Frequency (Hz)
You have to choose the cutoff frequency.
There are several ways to design filters in MATLAB, including dfilt and designfilt, however the IIR filter design procedure I usually use may be easier. It is here: How to design a lowpass filter for ocean wave data in Matlab?
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Digital and Analog Filters에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!