Problem 42665. sort matrix

Created by Gareth Lee in Community

Given a matrix, sort it for each column, but cannot change the element of each row. for example input = [1 3; 2 4;1 5;3 6]; the result returned by you is target = [1 3; 1 5;2 4; 3 6];

Solution Stats

50.79% Correct | 49.21% Incorrect
Last solution submitted on Jun 26, 2018

Problem Comments

Solution Comments

Recent Solvers15

Suggested Problems

More from this Author3


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!