Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I heed Help with regexp?

1 回表示 (過去 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