Extracting values from table/ matrices
2 views (last 30 days)
Show older comments
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?
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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!