No BSD License  

4.5

4.5 | 8 ratings Rate this file 25 Downloads (last 30 days) File Size: 3.38 KB File ID: #725

smoothn

by

 

12 Sep 2001 (Updated )

Smooths N-D input data using 'box' or 'gaussian' filter using a specified convolution kernel.

| Watch this File

File Information
Description

SMOOTHN Smooth N-D data
   Y = SMOOTHN(X, SIZE) smooths input data X. The smoothed data is
       retuirned in Y. SIZE sets the size of the convolution kernel
       such that LENGTH(SIZE) = NDIMS(X)

   Y = SMOOTHN(X, SIZE, FILTER) Filter can be 'gaussian' or 'box' (default)
       and determines the convolution kernel.

  Y = SMOOTHN(X, SIZE, FILTER, STD) STD is a vector of standard deviations
       one for each dimension, when filter is 'gaussian' (default is 0.65)

See also SMOOTH3

(It is an extension of Mathworks' SMOOTH3 from 3 to N dimensions)

Acknowledgements

This file inspired Fast Running Mean.

MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
17 Jul 2014 ogadol

Hi Anil

Im applying smoothn in order to smooth bathmetric data sets and it works perfectly. I'm using a smooth factor of 10^9 on a 1601X1601 grid. The spacing of the points in realty is 12.5 m. can you please tell me what is the spatial meaning of the smooth factor in my case ?

Thanks

Ogadol

18 Apr 2014 Han  
15 Apr 2008 y c

GOOD, but gives problems when plotting a 0°-360° longitude contour map.
0° longitude data do not coincide with 360° longitude data.there is a shift of the isolines.

15 Nov 2006 Fco. Camacho

Good. (For the box filter (enough for me) in 1 and 2d i prefer moving_average by Carlos Vargas, it's a ferrari)

07 Feb 2006 Kent Conover

Failed to finish a smooth of a 1000 point vector when run on Mac OS X system with Matlab Version 7.1.0.183 (R14) Service Pack 3.

30 Nov 2004 Psul Griffin

slow, but good results.

15 Apr 2004 Ed Chao

Works like it should and verified to be accurate. Matches the IDL function "SMOOTH". But this function is *slow*. A 1 sec. IDL program takes about 20 seconds with this function.

19 Mar 2004 Zoltan Nadasdy  
02 Oct 2003 glacier cao

Good!

14 Jul 2003 Carlos Vargas  

Contact us