Index of the colums which contains only specific char 'B'
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dora de Jong
le 23 Mar 2021
Commenté : Dora de Jong
le 23 Mar 2021
Cell array values and words.
Want to find which colums contains only B's
a = {
1 'B' 2 'B' ;
'B' 'B' 'B' 'B' ;
1 2 'B' 'A';
}
Wanted outcome:
b =[0;1;0]
This is a simplified version of the entire array a.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Report Generator 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!