Cody

Problem 679. Alias abs to asb

Solution 662011

Submitted on 27 Apr 2015
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)))

Error: Index exceeds matrix dimensions.

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

Error: Index exceeds matrix dimensions.