finding the Column name of a matrix
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
galben
el 15 de Nov. de 2022
Respondida: Star Strider
el 15 de Nov. de 2022
find the column name correspnding to particular values in a row of a mertrix
i tried this but not working
A(find(A(50,:)=1), 2)
0 comentarios
Respuesta aceptada
Star Strider
el 15 de Nov. de 2022
I am not certain what you want to do.
The equality comparison operator in MATLAB is the double-equal (==) operator —
A = randi(9, 7, 5)
A(find(A(5,:)==1), 2)
.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing 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!