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일

0 개 추천

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

SHOBA MOHAN
SHOBA MOHAN 2018년 2월 1일
Thanks Walter. it works.
SHOBA MOHAN
SHOBA MOHAN 2018년 2월 1일
Now, its displayed in the command prompt.I want to print the 'string did not have PwDsymbol anywhere'statement in notepad. Can you help me?
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개)

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

질문:

2018년 2월 1일

댓글:

2018년 2월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by