MATLAB: strmatch vs strcmp

后端 未结 2 755

If I\'m using a char string as the needle and a cell array of chars as the haysack, would the following achieve the same results every time? I\'m looking at their d

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-14 13:57

    strmatch is not recommended. Use strncmp or validatestring instead. strmatch will be removed from a future version of matlab. *Warning given in Matlab 2017 a.

提交回复
热议问题