Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

I heed Help with regexp?

조회 수: 3 (최근 30일)
Peter
Peter 2012년 8월 15일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Walter Roberson
Walter Roberson 2012년 8월 15일
I think you have the order of arguments reversed.

답변 (1개)

Jan
Jan 2012년 8월 18일
STRCMP or STRNCMP might help here. They are less powerful, but as compensation they are easier.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by