Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
species=['O2','H2O','CO2')

回答(1 个)

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

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by