Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

I heed Help with regexp?

3 visualizaciones (últimos 30 días)
Peter
Peter el 15 de Ag. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have multiple variables, but I'm only trying to look at the data for one of them. Example ('AM0001_FILT' and 'AM0001').
I'm using this code:
bb=regexp('AM0001_FILT', handles.ParaID);
This ends up matching both AM0001_FILT and AM0001, when all I want is the AM0001_FILT.
How do I only match to AM0001_FILT?
  1 comentario
Walter Roberson
Walter Roberson el 15 de Ag. de 2012
I think you have the order of arguments reversed.

Respuestas (1)

Jan
Jan el 18 de Ag. de 2012
STRCMP or STRNCMP might help here. They are less powerful, but as compensation they are easier.

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by