Simple robust function. Does not recognize negetive numbers and scientific notation. Nice alternative to ~isempty(str2num(str)) approach which sametimes gives strange results (try str = 'sphere' ).
Updates
18 Nov 2004
A single period is no longer considered a number. It must be succeeded by a digit.
Vector inputs and outputs are supported.
22 Nov 2004
Digits followed by a period but no more digits is now considered a number.