フィルターのクリア

Row position and find value

14 ビュー (過去 30 日間)
Alexandra Philip
Alexandra Philip 2020 年 6 月 30 日
コメント済み: madhan ravi 2020 年 6 月 30 日
I have having some trouble with locating the position of the row in a table and then using that same row to find the value in column 3.
I first used:
Accelval=find(strcmp(mergetable1{:,1},AccelSN),1) to find the value where the first column matches the variable where the user has an input. The I would like to find the row position of this value. After determining the row position, I must create a new variable that uses the row position to find the value in column 3.
Any suggestions?

採用された回答

madhan ravi
madhan ravi 2020 年 6 月 30 日
Replace
Accelval
with
[rows, columns] = ... and use the rows to index the table of column 3
  2 件のコメント
Alexandra Philip
Alexandra Philip 2020 年 6 月 30 日
Thank you. So, just for clarification, I would use:
[rows, columns]=find(strcmp(mergetable1{:,1},AccelSN),1)
BIA1=mergetable1{rows,3}
madhan ravi
madhan ravi 2020 年 6 月 30 日
Yes

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by