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

55.7% Correct | 44.3% Incorrect
Last solution submitted on Dec 05, 2016

Problem Comments

Solution Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more