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
Find all elements less than 0 or greater than 10 and replace them with NaN
Remove any row in which a NaN appears
More from this Author260
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!