Problem 679. Alias abs to asb
Solution Stats
Problem Comments
-
1 Comment
James
on 15 May 2012
I'll take one of these for "spritnf" please...
Solution Comments
-
1 Comment
Brett Shoelson
on 14 May 2012
Your test suite is not a good one; you shouldn't declare asb to be global. Instead, you should just allow the function declaration to contain 'asb', as in:
function x = asb(x)
x = abs(x)
end
And do you _really_ think we should program MATLAB to try to fix your typos? That's a recipe for disaster!
Brett
Problem Recent Solvers27
Suggested Problems
-
1805 Solvers
-
4583 Solvers
-
Determine Whether an array is empty
694 Solvers
-
838 Solvers
-
Test if two numbers have the same digits
206 Solvers
More from this Author255
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!