Row position and find value
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alexandra Philip
am 30 Jun. 2020
Kommentiert: madhan ravi
am 30 Jun. 2020
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?
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 30 Jun. 2020
Replace
Accelval
with
[rows, columns] = ... and use the rows to index the table of column 3
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps 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!