I need a function to identify if a number is part of a vector or matrix.
9 ビュー (過去 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!