Info
此问题已关闭。 请重新打开它进行编辑或回答。
I heed Help with regexp?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Jan
2012-8-18
STRCMP or STRNCMP might help here. They are less powerful, but as compensation they are easier.
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!