Cody

Solution 115258

Submitted on 19 Jul 2012
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
%% A=[0.9 0.81]; B=[0.9 0.80]; C=[1.3 2.6]; good = goodness(A,B,C); good_correct = 'A'; assert(isequal(good,good_correct))
2   Fail
%% A=[0.9 0.80]; B=[0.9 0.81]; C=[1.3 2.6]; good = goodness(A,B,C); good_correct = 'B'; assert(isequal(good,good_correct))
Error: Assertion failed.
3   Pass
%% A=[0.4 0.064]; B=[0.3 0.067]; C=[1.2 3.6]; good = goodness(A,B,C); good_correct = 'A'; assert(isequal(good,good_correct))