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).

 採用された回答

C.J. Harris
C.J. Harris 2016 年 1 月 13 日

0 投票

Nr2 = double(Letter)-'A'+1

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Type Conversion についてさらに検索

製品

質問済み:

2016 年 1 月 13 日

回答済み:

2016 年 1 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by