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.
What is the fun in solving a problem this way..i saw u submitting this in every problem..its disgusting
Sort a list of complex numbers based on far they are from the origin.
Triangle Numbers Below N
Flip the main diagonal of a matrix
Binary code (array)
No of squares in a grid
Fault in our Stars - 01
ZigZag - 01
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