Given two lists of numbers, determine the weighted average.
Example
[1 2 3] and [10 15 20]
should result in
33.3333 (1*10 + 2*15 + 3*20)/3
4 players like this solution
1 player likes this solution
1 player likes this solution
Tags
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply Today
21 players like this problem
21 players like this problem