Find index of an arbitrary cell array that contains a string
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Leo Simon
le 10 Juin 2020
Réponse apportée : madhan ravi
le 10 Juin 2020
In This thread, @Jan answers the question in the title for the case of cell arrays that consist only of character variables.
It doesn't work for more cell arrays that contain numbers and variables, e.g.,
dog = {1,'cat'}
Index = find(contains(dog,'cat'))
returns an error. Could somebody explain the solution for the case of general arrays? Thanks
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!