Cody

Problem 679. Alias abs to asb

Solution 2890748

Submitted on 29 Aug 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)))

Error in solution: Line: 1 Column: 11 Invalid use of operator.

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

Error in solution: Line: 1 Column: 11 Invalid use of operator.

Suggested Problems

More from this Author246

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!