No BSD License  

Highlights from
smoothn

4.42857

4.4 | 7 ratings Rate this file 20 Downloads (last 30 days) File Size: 3.38 KB File ID: #725

smoothn

by Anil Gannepalli

 

12 Sep 2001 (Updated 25 Nov 2001)

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 submission has inspired the following:
fast running mean
MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
14 Jul 2003 Carlos Vargas  
02 Oct 2003 glacier cao

Good!

19 Mar 2004 Zoltan Nadasdy  
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.

30 Nov 2004 Psul Griffin

slow, but good results.

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.

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)

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.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
approximation Anil Gannepalli 22 Oct 2008 06:37:33
interpolation Anil Gannepalli 22 Oct 2008 06:37:33
smooth Anil Gannepalli 22 Oct 2008 06:37:33
nd Anil Gannepalli 22 Oct 2008 06:37:33
multidimensional Anil Gannepalli 22 Oct 2008 06:37:33
mathematics Anil Gannepalli 22 Oct 2008 06:37:33
approximations Anil Gannepalli 22 Oct 2008 06:37:33

Contact us at files@mathworks.com