Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

how can we know the index of this data? for example,i want know index of H2O

1 vue (au cours des 30 derniers jours)
Tsapala Sai Prakash
Tsapala Sai Prakash le 23 Juil 2019
Clôturé : MATLAB Answer Bot le 20 Août 2021
species=['O2','H2O','CO2')

Réponses (1)

Bob Thompson
Bob Thompson le 23 Juil 2019
I would suggest using strfind to look up a string.
result = strfind(species,'H2O');

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by