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에서 Matrices and Arrays에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!