콘텐츠로 바로 가기
MathWorks

Cody

  • 도움말 센터
  • Cody 문제
  • MathWorks
  • MATLAB 도움말 센터
  • 커뮤니티
  • 학습
  • MATLAB 받기 MATLAB
  • 로그인
    • 내 계정
    • 나의 커뮤니티 프로필
    • 라이선스를 계정에 연결

    • 로그아웃
  • MathWorks 지원팀에 문의
  • Visit mathworks.com
  • MATLAB Answers
  • File Exchange
  • Cody
  • AI Chat Playground
  • Discussions
  • Contests
  • Blogs
  • More
    • Communities
    • Treasure Hunt
    • People
    • Community Advisors
    • Virtual Badges
    • About
  • Home
  • Problem Groups
  • Problems
  • Players
  • More
    • Solutions
    • Recent Activity
  • Help

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.

Yoav Shallev
Yoav Shallev
145 solvers
1 likes
Solve
Solve Later

 ---------------
A=
[ 2 6 -3
7 12 0
-12 5 1]
---------------
B=
    [12     7     1
     6     2     0
     5    -3   -12];
Solve

Solution Stats

536 Solutions

145 Solvers

Last Solution submitted on May 04, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers145

Pauli Huusari Selena Mastrodonato Riccardo G. CXD

Suggested Problems

  • Most nonzero elements in row

    7462 Solvers

  • Determine Whether an array is empty

    808 Solvers

  • Output any real number that is neither positive nor negative

    408 Solvers

  • 05 - Vector Equations 2

    437 Solvers

  • Calculate Amount of Cake Frosting

    28918 Solvers

More from this Author4

  • Given a matrix A (size m x n) create a matrix B (size m+2 x n+2) which consists of matrix A surrounded by zeros. See Example below:

    155 Solvers

  • Rearrange the given matrix to have all its zeros climb up to the top of each column - using for loops.

    137 Solvers

  • Given a Vector v1, create v2 which is the sum of each two adjacent elements in v1. {length(v2)=length(v1)-1}

    161 Solvers

  • Given a matrix A return a vector of the product of the elements in each column using a loop without using prod.

    151 Solvers

Problem Tags

  • basic matlab
  • matrix

Community Treasure Hunt

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

Start Hunting!
MathWorksMathWorks

웹사이트 선택

번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:

  • (English)
  • (Deutsch)
  • (Français)
  • (简体中文)
  • (English)

또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.

사이트 성능 최적화 방법

최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.

미주

  • América Latina (Español)
  • Canada (English)
  • United States (English)

유럽

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

아시아 태평양

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文
    • English
  • 日本 (日本語)
  • 한국 (한국어)

지역별 지사에 문의

  • 신뢰 센터
  • 상표
  • 개인정보 취급방침
  • 불법 복제 방지
  • 애플리케이션 상태
  • 사용 약관
  • Contact Us

© 1994-2026 The MathWorks, Inc.