How to count a character string position?
2 ビュー (過去 30 日間)
表示 古いコメント
採用された回答
Stephen23
2022 年 4 月 25 日
S = '00101100';
X = strfind(S,'1');
fprintf('The places with data are %s\n',join(string(X),", "))
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!