Matlab中 intersect 函数用法或者说查找重复值位置
Show older comments
假如A = [7 2 4 6]; B =[1 2 0 4 6 10 6]; [c, ia, ib] = intersect(A, B); matlab里的计算结果为 ib = [2 4 7]。 但,交集 [2 4 6]在数组B的指标应为 [ 2 4 5 7] 。 这个函数没法实现这个功能,有没有大神能帮助下呢? QQ 919182250 欢迎留言 实时关注问题
1 Comment
Shi Song
on 22 Mar 2020
find(B==2 | B==4 | B==6)
Answers (0)
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!