Extracting values from table/ matrices
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Isaac Hassen
am 19 Jun. 2020
Kommentiert: Isaac Hassen
am 19 Jun. 2020
I have a table with three columns (a,b,c) and hundreds of rows. How can I extract all the values of b and c when a=x?
2 Kommentare
Akzeptierte Antwort
madhan ravi
am 19 Jun. 2020
TablE(TablE.a == x, 2:3) % x is a numeric scalar , use strcmp(...) if it’s a string or a char
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings 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!