Simple Low Pass Filter without Signal Processing Toolbox
조회 수: 24 (최근 30일)
이전 댓글 표시
Hi all,
I am facing a really stupid issue about filtering noises in a signal. I have to mention that the license bought by my company don't allow access to the signal processing toolbox.
To do so, I simply defined a low pass filter using the "filter" function as follows:
Heading = AllHeading{1,k}; % the signal to filter
Time = AllTime{1,k}; % the time vector
Tnoise = 10; % the cutoff period
Te = mean(Time(2:end)-Time(1:end-1)); % the sampling period
wt = Te/Tnoise; % the normalised cutoff frequency
Heading_f = filter(1,[1 -wt],Heading); % the filtered signal
I don't know if the transfer function that I defined is wrong or if I am missing some points, but the the signal isn't filtered and is just vertically moved, as if the mean value were increased...
Any help ?
JB
댓글 수: 1
Hui Puong
2021년 2월 8일
Hello, I wondering how can you apply your code on an excel file data that imported into Matlab with two variables named X and Y?
Thank you in advance
답변 (2개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Digital Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!