Filtering out the noise in the observations by applying a low pass filter

26 ビュー (過去 30 日間)
Ali Saremi
Ali Saremi 2021 年 2 月 16 日
コメント済み: Ali Saremi 2021 年 2 月 22 日
Hi,
I need to filter out the nosie in my observation data. Based on my understanding, I should use Low Pass Filter function. I was wondering if someone could help me with this?
I have attached the excel file as well.
Thank you and I look forward to hearing from you.
Kind regards,
Ali

採用された回答

Abhishek Gupta
Abhishek Gupta 2021 年 2 月 19 日
Hi,
As per my understanding, you want to remove noise from your data using low-pass filter. You can do the same using the 'lowpass()' function in MATLAB. See the code below: -
% Import data from excel and save it as a variable
% Load the saved variable
load('ObservationData.mat');
signal = ObservationData.Value; % signal vector
% Use Fourier transforms to find the frequency components of a signal buried in noise
y = fft(signal);
f = (0:length(y)-1)*50/length(y);
plot(f,abs(y))
% Apply lowpass filter
lowpass(signal,10,1e3)
Output: -
For more information, check out the following documentations: -
  1. lowpass filter
  2. Fast fourier transform
  1 件のコメント
Ali Saremi
Ali Saremi 2021 年 2 月 22 日
Hi Abhishek Gupta,
Thank you so much for your help. It worked for me. Wish you a good day.
Regards,
Ali

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics and Linear Algebra についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by