필터 지우기
필터 지우기

Letter refer to number

조회 수: 1 (최근 30일)
Joep
Joep 2016년 1월 13일
답변: C.J. Harris 2016년 1월 13일
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일
Nr2 = double(Letter)-'A'+1

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by