Index of the colums which contains only specific char 'B'
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Dora de Jong
el 23 de Mzo. de 2021
Comentada: Dora de Jong
el 23 de Mzo. de 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 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Cell Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!