File Exchange

image thumbnail


version (463 Bytes) by Aman Siddiqi
Converst 'abc' to 123

1 Download

Updated 11 May 2007

No License

word2num('abc') yields 123
word2num('abc z') yields 123026

Cite As

Aman Siddiqi (2021). word2num (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Stephen Cobeldick

Basically it does this:
'abc d'-96
ans = [1,2,3,-64,4]

Indexing or max&rem could be used to force non-alphabet values to zero.

C. S.


MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!