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)
And do you _really_ think we should program MATLAB to try to fix your typos? That's a recipe for disaster!
Given an unsigned integer x, find the largest y by rearranging the bits in x
Hackathon: the beginnings
Project Euler: Problem 4, Palindromic numbers
Project Euler: Problem 6, Natural numbers, squares and sums.
kmph to mps
Pandiagonal Prime Magic Square Verification
Unique: Faster for options 'rows' and 'stable' for large array of uint8
PACMAT - G03 Ghosts use minimum path to PACMAT; 3 Lives
Molecule Atomic Wt (CHONS) Molecules
BattleShip - Seaman (1) thru Admiral(6) : CPU Time Scoring(msec)
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office