character extraction from the output

1 visualización (últimos 30 días)
SHOBA MOHAN
SHOBA MOHAN el 1 de Feb. de 2018
Comentada: SHOBA MOHAN el 4 de Feb. de 2018
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 comentario
Walter Roberson
Walter Roberson el 1 de Feb. de 2018
Are you trying to determine whether the 9-character string 'Pwdsymbol' occurs somewhere within a string?

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 1 de Feb. de 2018
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 comentarios
Walter Roberson
Walter Roberson el 1 de Feb. de 2018
... 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 el 4 de Feb. de 2018
Thanks walter. i done it.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by