Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
Tsapala Sai Prakash
Tsapala Sai Prakash am 23 Jul. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
species=['O2','H2O','CO2')

Antworten (1)

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

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by