Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
mak khatib
mak khatib am 8 Mai 2017
Beantwortet: dpb am 8 Mai 2017
how to read a letter from a string in a cell?

Antworten (1)

dpb
dpb am 8 Mai 2017
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 =
.
>>

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by