フィルターのクリア

smoothing a graph using matlab

1 回表示 (過去 30 日間)
Abeer Aboul Azm
Abeer Aboul Azm 2022 年 5 月 28 日
回答済み: Star Strider 2022 年 5 月 28 日
how can I smooth data imported from one column (Excel sheet) using Matlab , Thanks
how to smooth the corners?

採用された回答

Star Strider
Star Strider 2022 年 5 月 28 日
There are several opotions, including sgolayfilt and smoothdata and frequency-selective filters —
y = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1013745/Book1.xlsx');
L = numel(y);
x = linspace(0, L-1, L);
figure
plot(x, y)
grid
yf = smoothdata(y, 'sgolay', fix(L/25));
figure
plot(x, yf)
grid
Experiment with the window size (third argument in smoothdata) to get the result you want.
.

その他の回答 (1 件)

KSSV
KSSV 2022 年 5 月 28 日
Read about smooth, polyfit

カテゴリ

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