how to read a letter from a string in a cell?
조회 수: 2 (최근 30일)
이전 댓글 표시
how to read a letter from a string in a cell?
댓글 수: 0
답변 (1개)
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 =
.
>>
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 String Parsing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!