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
Which doors are open?
Given an unsigned integer x, find the largest y by rearranging the bits in x
radius of a spherical planet
Roll the Dice!
Let's see how peculiar we can get
Integer Sequence - 1
Path of least resistance - Move all direction
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