フィルターのクリア

smooth curve smooth curve

1 回表示 (過去 30 日間)
Latifa Bouguessaa
Latifa Bouguessaa 2022 年 11 月 17 日
回答済み: Star Strider 2022 年 11 月 17 日
Hello, everyone.
How can I best smooth the curve (see attachment) (fitting)? Do you have an idea?
I thank you
  2 件のコメント
Jan
Jan 2022 年 11 月 17 日
How do you define "good"? This must be specified before a "best" can be found. Do you want a low or high pass filtering? Or in other words: Are the low or the high frequencies the noise? "Fitting" is meaningful, if you know the function to fit from a physical model.
Latifa Bouguessaa
Latifa Bouguessaa 2022 年 11 月 17 日
I just need a function that smoothes the curve

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

回答 (1 件)

Star Strider
Star Strider 2022 年 11 月 17 日
That appears to me to be a fft result after using the fftshift function on it. Each of the ‘peaks’ is a different frequency component.
Experiment with zero-padding the fft:
L = numel(s);
NFFT = 2^nextpow2(L);
FTs = fft(s, NFFT)/L;
Here, ‘s’ is the original time-domain signal.
The frequency vector should go from -Fn to + Fn, where ‘Fn’ is the Nyquist frequency (one-half of the sampling frequency).
.

カテゴリ

Help Center および File ExchangeSmoothing and Denoising についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by