Cody

Problem 106. Weighted average

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

Solution Stats

54.49% Correct | 45.51% Incorrect
Last solution submitted on Dec 13, 2017

Problem Comments

Solution Comments

Win prizes and improve your MATLAB skills

Play today