필터 지우기
필터 지우기

how to read a letter from a string in a cell?

조회 수: 2 (최근 30일)
mak khatib
mak khatib 2017년 5월 8일
답변: dpb 2017년 5월 8일
how to read a letter from a string in a cell?

답변 (1개)

dpb
dpb 2017년 5월 8일
Just as in any other cell addressing; use the indexed addressing mode--
>> whos s % just happened to be in workspace at the moment...
Name Size Bytes Class Attributes
s 222x1 16706 cell
>> s(1) % the first cell
ans =
'-40.01'
>> s{1} % the first cell content
ans =
-40.01
>> s{1}(4) % the fourth character in the cell content..
ans =
.
>>

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by