Cody

Solution 2233418

Submitted on 25 Apr 2020
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
global asb % Goal is to alias abs to asb for dyslexic typers k=-randi(10); y=make_alias(1); assert(isequal(abs(k),asb(k)))

asb = []

Array indices must be positive integers or logical values. Error in Test1 (line 4) assert(isequal(abs(k),asb(k)))

2   Fail
global asb k=-99; y=make_alias(1); assert(abs(-4)==asb(-4))

asb = []

Array indices must be positive integers or logical values. Error in Test2 (line 4) assert(abs(-4)==asb(-4))