Cody

Solution 170116

Submitted on 29 Nov 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   Fail
%% M = magic(5) LB = 3; UB = 10; AI = find((M > LB) & (M < UB)); assert(isequal(absoluteInBetween(M, LB, UB),AI))
Error: Operands to the || and && operators must be convertible to logical scalar values.
2   Fail
%% M = magic(10) LB = 3; UB = 10; AI = find((M > LB) & (M < UB)); assert(isequal(absoluteInBetween(M, LB, UB),AI))
Error: Operands to the || and && operators must be convertible to logical scalar values.