12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

smooth3Purpose2smooth3Smooth 3-D dataSyntaxW = smooth3(V)W = smooth3(V,'filter')W = smooth3(V,'filter',size)W = smooth3(V,'filter',size,sd)Description 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 canbe the strings gaussian or box (default).W = smooth3(V,'filter',size) sets the size of the convolution kernel (defaultis [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 convolutionkernel. When filter is gaussian, sd is the standard deviation (default is .65).ExamplesThis example smooths some random 3-D data and then creates an isosurfacewith end caps.data = rand(10,10,10);data = smooth3(data,'box',5);p1 = patch(isosurface(data,.5), ...'FaceColor','blue','EdgeColor','none');p2 = patch(isocaps(data,.5), ...'FaceColor','interp','EdgeColor','none');isonormals(data,p1)view(3); axis vis3d tightcamlight; lighting phongSee Alsoisocaps, isonormals, isosurface, patch, reducepatch, reducevolume,subvolume2-450

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!