character extraction from the output

1 次查看(过去 30 天)
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()

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by