replace find instruction for more fast precedure
Mostrar comentarios más antiguos
I have a very long vector close to 100.000 values, well I need to know wich of them are == x, but "find" instruction it´s very delayded,¿How can I get fast speed or replace find ?
But I need the pointers of vector, not values!
Respuestas (1)
Adam
el 25 de Oct. de 2016
myVec( myVec == x );
gives you a boolean indicator array of all those that match the expression, but it depends what you want to do with the information as to how best to use that.
1 comentario
Felipe Vidal
el 27 de Oct. de 2016
Categorías
Más información sobre Structures en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!