Rank: 5221 based on 1 downloads (last 30 days) and 2 files submitted
photo

Dave Kellow

E-mail

Personal Profile:
Professional Interests:
Oceanography

 

Watch this Author's files

 

Files Posted by Dave View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
08 Jan 2007 num2english Converts real numbers to plain english Author: Dave Kellow strings, text numerics english... 0 1
  • 4.0
4.0 | 1 rating
15 Dec 2006 num2english Translates digits to english Author: Dave Kellow strings, numerical number word... 1 0
Comments and Ratings on Dave's Files
Updated File Comment by Comments Rating
08 Jan 2007 num2english Converts real numbers to plain english Author: Dave Kellow D'Errico, John

In general, this did ok. A few things could be improved. I'd have liked to see an H1 line. Lookfor needs that to work properly.

I know that it says this converts numbers to english. But if it does not work for complex numbers, then it should generate an error message, not a wildly incorrect result.

num2english(1+sqrt(-1))
ans =
one thousand

It also does not seem to handle early years well.

num2english(21,'year')
??? Undefined function or variable "engy".

Error in ==> num2english at 209
        engy = strrep(engy,'zero','oh-oh');

Have you ever had a "bad" year? This will pick you up:

num2english(-1,'year')
??? Error using ==> num2english
No such thing as a negative year.

8-)

And its rather picky about the second argument. For example, it will not accept 'Year' in place of 'year'.

I wanted to rate this about a 3.5 because of the items listed above, but its a neat function, so I rounded up. I'd happily raise that rating.

Top Tags Applied by Dave
strings, numerical number words english translate, text numerics english translate
Files Tagged by Dave View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
08 Jan 2007 num2english Converts real numbers to plain english Author: Dave Kellow strings, text numerics english... 0 1
  • 4.0
4.0 | 1 rating
15 Dec 2006 num2english Translates digits to english Author: Dave Kellow strings, numerical number word... 1 0

Contact us at files@mathworks.com