character extraction from the output

1 回表示 (過去 30 日間)
SHOBA MOHAN
SHOBA MOHAN 2018 年 2 月 1 日
コメント済み: SHOBA MOHAN 2018 年 2 月 4 日
I done number plate extraction and recognition and want to check the output having Pwdsymbol or not. Obtained output is PwDsymbol012345. How can i do it?
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 2 月 1 日
Are you trying to determine whether the 9-character string 'Pwdsymbol' occurs somewhere within a string?

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2018 年 2 月 1 日
s='PwDsymbol012345';
locations = strfind(s, 'PwDsymbol');
if isempty(locations)
disp('string did not have PwDsymbol anywhere')
else
disp('PwDsymbol found starting at locations'), locations
end
  4 件のコメント
Walter Roberson
Walter Roberson 2018 年 2 月 1 日
... but I would suggest that perhaps this is not what you want to do. I would suggest that instead at most you want to use fopen() and fprintf() and fclose()
SHOBA MOHAN
SHOBA MOHAN 2018 年 2 月 4 日
Thanks walter. i done it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by