Please! Can you explain more than that?
Aye! The first column is not "sorted according the second column" (only half an explanation). The block of numbers in each row is treated as a fixed unit, and each row is rearranged such that the values in the second column are sorted in ascending order.
Back to basics 8 - Matrix Diagonals
Convert a numerical matrix into a cell array of strings
What is the distance from point P(x,y) to the line Ax + By + C = 0?
Arrange vector in ascending order
Replace multiples of 5 with NaN
function on a moving window
Find the treasures in MATLAB Central and discover how the community can help you!
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