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

Solution 76618

Submitted on 14 Apr 2012 by @bmtran

Correct

57Size
Leading solution size is 9.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
y_correct = true;
assert(isequal(ispareto({1,'foo',40},{0,'bar',30}),y_correct))
y_correct = false;
assert(isequal(ispareto({-2,-10,'z'},{0,-9,'t'}),y_correct))
y_correct = false;
assert(isequal(ispareto({-2,-10,-2},{0,5,6},{0,2,30}),y_correct))
y_correct = true;
assert(isequal(ispareto({1,'foo',40},{0,'bar',30},{10,'zoo',-1}),y_correct))