Bug in 2020a using "ismember"?

When I am trying to use the "ismember" command in 2020a, I get werid stuffs. e.g.,
A = [1 2 3;
4 5 6;
7 8 9];
B = [4 5 6];
[Result,LocResult] = ismember(B,A,'rows')
is giving me
Result =
logical
0
LocResult =
0
Am i doing something wrong here? I was expecting to get
Result =
1
LocResult =
2

5 件のコメント

the cyclist
the cyclist 2020 年 6 月 23 日
I got what you expected to get. R2020a, on a Mac running the latest Catalina.
I would look and see if
which ismember
gives anything funky, and also try restarting MATLAB and see if you get the same result.
Next step is then probably a bug report.
J AI
J AI 2020 年 6 月 23 日
restart works. wow. but why?
dpb
dpb 2020 年 6 月 24 日
Magic. Probably had managed to alias the builtin somehow...
J AI
J AI 2020 年 6 月 24 日
編集済み: J AI 2020 年 6 月 24 日
I had past problems where restart worked but nothing of this sort. must be magic! I am not sure how to accept comment as an answer though
dpb
dpb 2020 年 6 月 24 日
'S OK...sometimes just the conversation is good enough... :)

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

回答 (0 件)

カテゴリ

製品

リリース

R2020a

質問済み:

2020 年 6 月 23 日

コメント済み:

dpb
2020 年 6 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by