Logical indexing returns different dimensions
Mostrar comentarios más antiguos
a = [3, 2]
b = [1; 1] == 1
a(b) % returns a 1x2 array
a = [3, 2; 4, 5]
b = [1; 1; 1; 1] == 1
a(b) % returns a 4x1 array
1 comentario
Umesh Kumar Singla
el 12 de En. de 2023
Editada: Umesh Kumar Singla
el 12 de En. de 2023
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!