Problem 679. Alias abs to asb

Solution 88150

Submitted on 12 May 2012 by @bmtran (Bryant Tran)
  • Size: 13
  • This is the leading solution.
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
%% 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 = @abs

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

asb = @abs