How can i choose one result of numerical result?
Mostrar comentarios más antiguos
I have to choose higher row number (only one result)
A=[-1,1,1;0,-1,0;0,0,-1;1,0,0];
blnA = logical( A == -1 );
blnOut = find(all(ismember(A,[0,-1]),2));
blnOut =
2
3
2 comentarios
Azzi Abdelmalek
el 7 de Jun. de 2013
What is the expected result?
Light
el 7 de Jun. de 2013
Respuesta aceptada
Más respuestas (1)
Categorías
Más información sobre MATLAB 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!