Input v is a vector. Return all the elements of v which are not a local minimum or maximum.
v = [1 2 3 4 5]
Output = [1 2 3 4 5]
v = [1 2 3 2 1]
Output = [1 2 2 1]
v = [1 2 1 0 2 1]
Output = [1 1 1]
findpeaks is not working
Specific Element Count
Getting logical indexes
Generate N equally spaced intervals between -L and L
Insert zeros into vector
Compare two input matrices
Path of least resistance - Move all direction
Graph Algorithms - 1 : Length of the largest closed path
Construct a precedence graph from a code segment
Diagonal of a Spiral Matrix
Fermat's last theorem - again
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office