How can I multiply two different length vectors using for loops in Matlab ?

ie. [1 2 3] and [1 2] The results should be a vector [3 6 9]. That is (1x1)+(1x2)=3, (1x2)+(2x2)=6,(1x3)+(2x3)=9. Appreciate the help

 Accepted Answer

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

on 17 Dec 2016

Edited:

Jan
on 17 Dec 2016

Community Treasure Hunt

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

Start Hunting!