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!