Element by element multiplication of two vectors - MATLAB Cody - MATLAB Central

Problem 2516. Element by element multiplication of two vectors

Difficulty:Rate

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

83.97% Correct | 16.03% Incorrect
Last Solution submitted on Jun 10, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
6

Problem Recent Solvers383

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!