Skip to content

smooth3

plot · scripts/plot/draw/smooth3.m

: w = smooth3 (v)
: w = smooth3 (v, filter)
: w = smooth3 (v, filter, sz)
: w = smooth3 (v, filter, sz, sigma)

Smooth the 3-D data v by convolution with a small kernel.

filter is "box" (default) or "gaussian". The kernel size sz is a scalar or a three-element vector of odd positive integers (default 3); sigma (default 0.65) is the width of the Gaussian in samples. The array is extended by repeating its border values, so constant data stay constant and the result has the size of v.