Problem 679. Alias abs to asb
Create an alias of a built-in function name.
Goal is to alias asb with abs for dyslexic typers.
The test suite will be
%% global asb; k=-randi(10); y=make_alias(1); assert( isequal ( abs (k), asb (k) ) ) % End of test
My solution uses "global asb" inside the make_alias function.
Purpose: Some names may be long and substituted by short names.
My personal nemesis is figrue.
I want an auto-correct option in the editor for a custom wordlist.
My second nemesis: function9x). MATLAB should know I meant function(x)
Solution Stats
Problem Comments
-
1 Comment
I'll take one of these for "spritnf" please...
Solution Comments
Show commentsProblem Recent Solvers28
Suggested Problems
-
Return the 3n+1 sequence for n
8259 Solvers
-
How to find the position of an element in a vector without using the find function
2712 Solvers
-
335 Solvers
-
Create One Large Eye of size N x N Quickly?
93 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1051 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!