Matrix multiplication across rows - MATLAB Cody - MATLAB Central

Problem 2178. Matrix multiplication across rows

Difficulty:Rate

Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix

Example

 m = [ 1 2 3
       4 5 6
       7 8 9 ]

Then

 n = [ 1   2    6
       4  20  120
       7  56  504 ]

Solution Stats

55.95% Correct | 44.05% Incorrect
Last Solution submitted on Mar 12, 2025

Problem Comments

Solution Comments

Show comments

Group

Project Euler II Image
Project Euler II
  • 12 Problems
  • 51 Finishers

Problem Recent Solvers346

Community Treasure Hunt

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

Start Hunting!
Go to top of page