Problem 45304. MinMax
- x=[2 4 3 1 6 4 6]
- output , y=[1 6 2 4 3]
here,y(1) is the minimum of x, y(2) is the maximum of x, y(3) is the 2nd minimum .. this way continue.
x can be an array or a matrix.
y is a row matrix.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers32
Suggested Problems
-
Extract leading non-zero digit
2116 Solvers
-
The Hitchhiker's Guide to MATLAB
3276 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
666 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
371 Solvers
-
Matrix of almost all zeros, except for main diagonal
180 Solvers
More from this Author165
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!