Cody

Problem 366. bad colorimeter?

Solution 407386

Submitted on 21 Feb 2014 by J.R.! Menzinger
  • Size: 17
  • This is the leading solution.
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   Pass
%% 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))

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))

Suggested Problems

More from this Author100

Community Treasure Hunt

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

Start Hunting!