Undefined function 'contains' for input arguments of type 'char'
古いコメントを表示
Hi,
I am trying to use contains to check if string A has string B in it. Say, A = 'XYZXYZ', B = 'XY', I am using: tf = contains(A, B); But I keep getting error "Undefined function 'contains' for input arguments of type 'char'" Why?
Thanks in advance for any help. Jennifer
採用された回答
その他の回答 (1 件)
Geoff Hayes
2017 年 1 月 23 日
1 投票
Jennifer - which version of MATLAB are you using? According to contains, this function was introduced in R2016b.
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!