Search substring in character array

How can I find of a substring is present in a character array? The position is´t really important.

Risposte (1)

Ameer Hamza
Ameer Hamza il 8 Mag 2018
Modificato: Ameer Hamza il 8 Mag 2018

0 voti

See strfind(). Or if position is not important then use contains().

2 Commenti

Undefined function 'contains' for input arguments of type 'char'. I get this error
Ameer Hamza
Ameer Hamza il 8 Mag 2018
Modificato: Ameer Hamza il 8 Mag 2018
contains() was introduced in R2016b. Which MATLAB version are you using?

Accedi per commentare.

Categorie

Richiesto:

il 8 Mag 2018

Modificato:

il 8 Mag 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by