Given a matrix A (size m x n) create a matrix B which consists of matrix A sorted in descending order by columns and then by... - MATLAB Cody - MATLAB Central

Problem 44888. Given a matrix A (size m x n) create a matrix B which consists of matrix A sorted in descending order by columns and then by rows.

Difficulty:Rate
 ---------------
A=
[ 2 6 -3
7 12 0
-12 5 1]
---------------
B=
    [12     7     1
     6     2     0
     5    -3   -12];

Solution Stats

29.1% Correct | 70.9% Incorrect
Last Solution submitted on May 04, 2025

Problem Comments

Solution Comments

Show comments
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
3

Problem Recent Solvers145

Suggested Problems

More from this Author4

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page