Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

1 visualizzazione (ultimi 30 giorni)
species=['O2','H2O','CO2')

Risposte (1)

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

Questa domanda è chiusa.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by