Undefined function 'contains' for input arguments of type 'char'
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Akzeptierte Antwort
the cyclist
am 23 Jan. 2017
Bearbeitet: the cyclist
am 23 Jan. 2017
Are you using an older version of MATLAB? According to the documentation for contains, this function was introduced in version R2016b.
Weitere Antworten (1)
Geoff Hayes
am 23 Jan. 2017
Jennifer - which version of MATLAB are you using? According to contains, this function was introduced in R2016b.
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!