[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
- all /tools/hpmatlab/toolbox/matlab/ops/all.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- for /tools/hpmatlab/toolbox/matlab/lang/for.m
- i /tools/hpmatlab/toolbox/matlab/elmat/i.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- median /tools/hpmatlab/toolbox/matlab/datafun/median.m
- min /tools/hpmatlab/toolbox/matlab/datafun/min.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- ones /tools/hpmatlab/toolbox/matlab/elmat/ones.m
- rem /tools/hpmatlab/toolbox/matlab/elfun/rem.m
- reshape /tools/hpmatlab/toolbox/matlab/elmat/reshape.m
- return /tools/hpmatlab/toolbox/matlab/lang/return.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
- zeros /tools/hpmatlab/toolbox/matlab/elmat/zeros.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON