Effacer les filtres
Effacer les filtres

複数の条件(文字)に一致するインデクスの取得方法

3 vues (au cours des 30 derniers jours)
Tadafumi Sugi
Tadafumi Sugi le 4 Déc 2023
Commenté : Dyuman Joshi le 4 Déc 2023
1列目がEat,2列目がRuminationである行番号を取得したいのですが,どうすればよろしいでしょうか?
ご教授よろしくお願いし致します.

Réponse acceptée

madhan ravi
madhan ravi le 4 Déc 2023
Modifié(e) : madhan ravi le 4 Déc 2023
Row_number = find(strcmp(Data{:, 1}, 'Eat') & strcmp(Data{:, 2}, 'Rumination')) % Where Data is your Table
  5 commentaires
Tadafumi Sugi
Tadafumi Sugi le 4 Déc 2023
出来ました!
ありがとうございます.
Dyuman Joshi
Dyuman Joshi le 4 Déc 2023
Hello @Tadafumi Sugi, if this answer solved your problem, please consider accepting the answer.
Accepting the answer indicates that your problem has been solved (which can be helpful to other people in future) and it awards the volunteer with reputation points for helping you.
You can accept only 1 answer for a question, but you can vote for as many answers as you want. Voting an answer also provides reputation points.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 行列および配列 dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!