I need a function to identify if a number is part of a vector or matrix.
6 次查看(过去 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 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!