複数の条件(文字)に一致するインデクスの取得方法
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tadafumi Sugi
am 4 Dez. 2023
Kommentiert: Dyuman Joshi
am 4 Dez. 2023
1列目がEat,2列目がRuminationである行番号を取得したいのですが,どうすればよろしいでしょうか?
ご教授よろしくお願いし致します.
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 4 Dez. 2023
Bearbeitet: madhan ravi
am 4 Dez. 2023
Row_number = find(strcmp(Data{:, 1}, 'Eat') & strcmp(Data{:, 2}, 'Rumination')) % Where Data is your Table
5 Kommentare
Dyuman Joshi
am 4 Dez. 2023
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!