Skip to content

smoothdata

datafun · scripts/datafun/smoothdata.m

: B = smoothdata (A)
: B = smoothdata (A, dim)
: B = smoothdata (…, method)
: B = smoothdata (…, method, window)
: B = smoothdata (…, nanflag)
: B = smoothdata (…, Name, Value)
: [B, winsize] = smoothdata (…)

Smooth noisy data with a moving window. method is one of "movmean" (default), "movmedian", "gaussian", "lowess", "loess", "rlowess", "rloess", or "sgolay". When window is omitted, a heuristic chooses a default from A (optionally scaled by "SmoothingFactor").

Matching MATLAB R2026a signatures, defaults, output classes and error ids (nexus#1804).