Skip to content
MathWorks

Cody

  • Help Center
  • Cody Problems
  • MathWorks
  • MATLAB Help Center
  • Community
  • Learning
  • Get MATLABMATLAB
  • Sign In
    • My Account
    • My Community Profile
    • Link License

    • Sign Out
  • Contact MathWorks Support
  • 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

Yoav Shallev

8325

8325
Rank

6

6
Badges

809

809
Score
View Community Profile
  • Activities
  • Progress
  • Solved
  • Problems Created
  • Groups Created
  • Badges
  • Activities
  • Progress
  • Solved
  • Problems Created
  • Problems Created
  • Groups Created
  • Badges
1 – 5 of 5

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

Created by: Yoav Shallev

Tags loops

136

Solvers

22

Size

136

Solvers

22

Size


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

Created by: Yoav Shallev

Tags matrix, basics

151

Solvers

16

Size

151

Solvers

16

Size


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.

Created by: Yoav Shallev

Tags matrix, basic matlab

145

Solvers

7

Size

145

Solvers

7

Size


Problem 44887. 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:

Created by: Yoav Shallev

Tags matrix manipulation, basic matlab

155

Solvers

7

Size

155

Solvers

7

Size


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

Created by: Yoav Shallev

Tags vectors, basics

160

Solvers

7

Size

160

Solvers

7

Size


1 – 5 of 5
MathWorks - Domain Selector

Select a Web Site

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: .

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

You can also select a web site from the following list

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

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

Europe

  • 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)

Asia Pacific

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

Contact your local office

  • Trust Center
  • Trademarks
  • Privacy Policy
  • Preventing Piracy
  • Application Status
  • Terms of Use
  • Modern Slavery Act Transparency Statement
  • Contact Us

© 1994-2025 The MathWorks, Inc.