Problem 679. Alias abs to asb
33.72% Correct | 66.28% Incorrect
Last Solution submitted on Oct 29, 2022
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)
And do you _really_ think we should program MATLAB to try to fix your typos? That's a recipe for disaster!
Problem Recent Solvers28
Make the vector [1 2 3 4 5 6 7 8 9 10]
How long is the longest prime diagonal?
More from this Author260
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!