Cody

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.0% Correct | 50.0% Incorrect
Last solution submitted on Jul 12, 2017

Problem Comments

Solution Comments

Recent Solvers14

Tags

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!