Borrar filtros
Borrar filtros

smoothing a graph using matlab

1 visualización (últimos 30 días)
Abeer Aboul Azm
Abeer Aboul Azm el 28 de Mayo de 2022
Respondida: Star Strider el 28 de Mayo de 2022
how can I smooth data imported from one column (Excel sheet) using Matlab , Thanks
how to smooth the corners?

Respuesta aceptada

Star Strider
Star Strider el 28 de Mayo de 2022
There are several opotions, including sgolayfilt and smoothdata and frequency-selective filters —
y = readmatrix('');
L = numel(y);
x = linspace(0, L-1, L);
plot(x, y)
yf = smoothdata(y, 'sgolay', fix(L/25));
plot(x, yf)
Experiment with the window size (third argument in smoothdata) to get the result you want.

Más respuestas (1)

KSSV el 28 de Mayo de 2022
Read about smooth, polyfit


Community Treasure Hunt

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

Start Hunting!

Translated by