replace find instruction for more fast precedure
이전 댓글 표시
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!
답변 (1개)
Adam
2016년 10월 25일
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.
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!