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