Cody

Problem 45785. Variance computation (★)

Solution 2650127

Submitted on 3 Jul 2020 by Asif Newaz
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = [-1, 3, 5, -4, 10, 12]; y_correct = 38.16666666666667; assert(isequal(your_fcn_name(x),y_correct))

2   Pass
x = 1:10; y_correct = 9.166666666666666; assert(isequal(your_fcn_name(x),y_correct))

3   Pass
x = primes(30); y_correct = 81.43333333333334; assert(isequal(your_fcn_name(x),y_correct))

Suggested Problems

More from this Author46

Community Treasure Hunt

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

Start Hunting!