Re: local maxima of a histogram
- From: neuromath <mathneuro@xxxxxxxxx>
- Date: Mon, 7 Jan 2008 10:13:49 -0800 (PST)
James wrote:
Is there a MATLAB function to calculate all the local
maxima of a histogram?
Otherwise, I think I`ll have to calculate the mode,
remove (or zero) that value, then calculate it again, down
to some specified level.
I have to find all the maxima, then test to see if any
of the maxima are within a given value of the others, then
do some more combining.
Thanks, Alan
Not sure I completely understand what you need, but assuming that you
are dealing with an m x n matrix of values that represent your
histogram data, you can use the 'max' command to tell MATLAB to find
the max along a particular dimension (see 'help max' for more). One of
many solutions would be to use 'repmat' and 'diff' to do the second
part of your analysis.
.
- References:
- local maxima of a histogram
- From: James
- local maxima of a histogram
- Prev by Date: Re: How to slice 3D array to 2D?
- Next by Date: Returning file handle from MEX function
- Previous by thread: local maxima of a histogram
- Next by thread: Re: local maxima of a histogram
- Index(es):
Relevant Pages
|
Loading