Finding matches for a vector
1 次查看(过去 30 天)
显示 更早的评论
Hi
Instead of using strmatch(), any suggestion for finding matches for a vector? Since one warning is about strmatch() http://www.mathworks.com.au/help/techdoc/ref/strmatch.html (Note strmatch will be removed in a future release), it is better to find sth to replace it.
The following code is the example. Thanks so much! Jessica
signal_vector=[ 1 1 1 1 1 1 0 0 0 0 0 0;5 4 3 2 1 0 0 -1 -2 -3 -4 -5 ]';
a= [1 1];
strmatch(a,signal_vector)
ans =
5
strcmp(a,signal_vector)
ans =
0
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!