I'll take one of these for "spritnf" please...
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
6723 Solvers
Find state names that end with the letter A
708 Solvers
Make one big string out of two smaller strings
1149 Solvers
Replace all zeros and NaNs in a matrix with the string 'error'
90 Solvers
78 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!