I need a function to identify if a number is part of a vector or matrix.
조회 수: 24 (최근 30일)
이전 댓글 표시
Clodoaldo de Souza Faria Júnior
2021년 9월 21일
댓글: Clodoaldo de Souza Faria Júnior
2021년 9월 21일
I don't need to know the number or position, I just need to know if a number belongs to a vector or matrix.I use the ismember function, but it is very slow when I repeat this many times, I would like an alternative.
The only consideration is that it has to be a function or quick code.
댓글 수: 0
채택된 답변
추가 답변 (1개)
Jan
2021년 9월 21일
If this is really time critical try https://www.mathworks.com/matlabcentral/fileexchange/26867-anyeq
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!