Find common rows in 2 different arrays (faster than ismember)

1 回表示 (過去 30 日間)
Mathieu Chêne
Mathieu Chêne 2023 年 4 月 24 日
編集済み: Stephen23 2023 年 4 月 24 日
Hello everyone,
I am currently looking for a function that would return the index of identical row in 2 different array. I tried with
listIdx=ismember(conversion,x,"rows");
out=find(listIdx);
However it need a lot of time to get the result: ~0.7s 0.8s for 1 element when I can have more than 600 rows to compare.
I also trye ismembc function but it compare all the single elements of both array
Is there a faster way to that ?
Thank you in advance for your help
Mathieu
  6 件のコメント
Mathieu Chêne
Mathieu Chêne 2023 年 4 月 24 日
Ok I did not know that.
However when I try to load the .dll file like this :
loadlibrary('IsMemberRows.dll')
I have the following error
Unrecognized function or variable 'IsMemberRows_proto'.
Maybe I am doing something wrong because I have all the downloaded files in the same folder
Stephen23
Stephen23 2023 年 4 月 24 日
編集済み: Stephen23 2023 年 4 月 24 日
"Maybe I am doing something wrong because I have all the downloaded files in the same folder"
No, I don't think you are doing anything wrong: the chance that a DLL created 23 years ago will run on your computer is slim. Unless someone knows how to make it work, we should consider that FEX submission as abandoned.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by