Cody

Solution 2069096

Submitted on 25 Dec 2019 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 = [ 3 4 71 8 10]; [p v]=outx(x); assert(p==3) assert(v==71)

tf = 1×5 logical array 0 0 1 0 0 p = 3 v = 71

2   Pass
x = [ 0 3 -7 -714 8 -10]; [p v]=outx(x); assert(p==4) assert(v== -714)

tf = 1×6 logical array 0 0 0 1 0 0 p = 4 v = -714

Suggested Problems

More from this Author100