This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Smooth 3-D data



W = smooth3(V) smooths the input data V and returns the smoothed data in W.

W = smooth3(V,'filter') filter determines the convolution kernel and can be one of these values:

  • 'gaussian'

  • 'box' (default)

W = smooth3(V,'filter',size) sets the size of the convolution kernel (default is [3 3 3]). If size is scalar, then size is interpreted as [size, size, size].

W = smooth3(V,'filter',size,sd) sets an attribute of the convolution kernel. When filter is gaussian, sd is the standard deviation (default is .65).


collapse all

Create a 10-by-10-by-10 array of random data and smooth it.

data = rand(10,10,10);
data = smooth3(data,'box',5);

Display the data as an isosurface with end caps.

p1 = patch(isosurface(data,.5),...
axis vis3d tight
camlight left
lighting gouraud

Extended Capabilities

Introduced before R2006a