フィルターのクリア

Attached are the plots of a i get from a csv file imported to MATLAB. I want to declutter the plot (remove the noise captured by measuring instrument) zoom on in the data.

2 ビュー (過去 30 日間)
Desired result capture.png

採用された回答

Kevin Holly
Kevin Holly 2022 年 2 月 23 日
open('untitled2.fig')
xlim([-0.5 2.5]) % changed domain min and max to zoom in.
h=gca; % obtained handle of the current axes
x = h.Children.XData; % extracted xdata from figure
y = h.Children.YData; % extracted ydata from figure
y=lowpass(y,10,1000); % Low pass filter with cut off at 10Hz, assuming sample rate of 1000 Hz
plot(x,y)
xlim([-0.5 2.5]) % changed domain min and max to zoom in.
open('untitled.fig')
h=gca; % obtained handle of the current axes
x = h.Children.XData; % extracted xdata from figure
y = h.Children.YData; % extracted ydata from figure
y=lowpass(y,10,1000); % Low pass filter with cut off at 10Hz, assuming sample rate of 1000 Hz
figure
plot(x,y)
xlim([-20 20])
  6 件のコメント
Kevin Holly
Kevin Holly 2022 年 3 月 2 日
Yes, you could use xlswrite to save the data within that range.
new_x = x(49380:52380);
new_y = y(49380:52380);
You can save the variables new_x and new_y into the Excel sheet.
Sarthak Jakar
Sarthak Jakar 2022 年 3 月 2 日
Ok thanks Kevin..you saved my day.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by