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
2018년 2월 1일
Are you trying to determine whether the 9-character string 'Pwdsymbol' occurs somewhere within a string?
채택된 답변
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
2018년 2월 1일
See https://www.mathworks.com/matlabcentral/answers/340993-open-new-notepad-and-insert-some-text-without-saving-it-in-file#answer_267647 for more information on interfacing to Notepad.
... 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 Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!