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

480 Solutions

394 Solvers

Last Solution submitted on Jan 23, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers394

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!