Extracting values from table/ matrices
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Isaac Hassen
le 19 Juin 2020
Commenté : Isaac Hassen
le 19 Juin 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 commentaires
Réponse acceptée
madhan ravi
le 19 Juin 2020
TablE(TablE.a == x, 2:3) % x is a numeric scalar , use strcmp(...) if it’s a string or a char
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!