Given two input vectors, return the element-by-element product.

Example

 A = [1 2 3]
 B = [7 3 1]

The answer should be

 [7 6 3]

Solution Stats

482 Solutions

396 Solvers

Last Solution submitted on Feb 16, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers396

Suggested Problems

More from this Author70

Community Treasure Hunt

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

Start Hunting!