Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
Tsapala Sai Prakash
Tsapala Sai Prakash 2019 年 7 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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