Cody

Solution 1571987

Submitted on 30 Jun 2018 by Srishti Saha
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 = [12 78 5 23 09 67 82 18]; y_correct = [5 82]; assert(isequal(min_max(a),y_correct))

ya = 5 yb = 82 y = 5 82

2   Pass
a = [12 178 15 23 09 67 82 18]; y_correct = [09 178]; assert(isequal(min_max(a),y_correct))

ya = 9 yb = 178 y = 9 178