[Master Index] [Index for /tools/hpmatlab/toolbox/signal]

medfilt1

(/tools/hpmatlab/toolbox/signal/medfilt1.m)


Function Synopsis

y = medfilt1(x,n,blksz)

Help text

MEDFILT1  One dimensional median filter.
	Y = MEDFILT1(X,N) returns the output of the order N, one dimensional 
	median filtering of vector X.  Y is the same length as X; for the edge
	points, zeros are assumed to the left and right of X. 

	For N odd, Y(k) is the median of X( k-(N-1)/2 : k+(N-1)/2 ).
	For N even, Y(k) is the median of X( k-N/2 : k+N/2-1 ).

	If you do not specify N, MEDFILT1 uses a default of N = 3.

	MEDFILT1(X,N,BLKSZ) uses a for-loop to compute BLKSZ ("block size") 
	output samples at a time.  Use this option with BLKSZ << LENGTH(X) if 
	you are low on memory (MEDFILT1 uses a working matrix of size
	N x BLKSZ).  By default, BLKSZ == LENGTH(X); this is the fastest
	execution if you have the memory for it.

	See MEDFILT2 in the Image Processing Toolbox for 2D median filtering.

Cross-Reference Information

This function calls

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON