Extracting values from table/ matrices
1 view (last 30 days)
Show older comments
Isaac Hassen
on 19 Jun 2020
Commented: Isaac Hassen
on 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 Comments
Accepted Answer
madhan ravi
on 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 Comments
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!