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
Find the sum of all the numbers of the input vector
Distance walked 3D
Matrix indexing with two vectors of indices
Vectorize the digits of an Integer
Fermat's last theorem - again
Construct a precedence graph from a code segment
Generate this matrix
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