필터 지우기
필터 지우기

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 CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by