Effacer les filtres
Effacer les filtres

Letter refer to number

1 vue (au cours des 30 derniers jours)
Joep
Joep le 13 Jan 2016
I did use A B C D E F ... for 1 2 3 4 5 6 .... with the following code:
Nr=[1 2 3 4 5 6];
Letter=char(Nr+'A'-1);
Letter =
ABCDEF
But now i want to get back the originals number instead of the corresponding letters (Nr is not avaible anymore).

Réponse acceptée

C.J. Harris
C.J. Harris le 13 Jan 2016
Nr2 = double(Letter)-'A'+1

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by