Matlab中 intersect 函数用法或者说查找重复值位置

假如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 欢迎留言 实时关注问题

Answers (0)

Asked:

on 11 Oct 2018

Commented:

on 22 Mar 2020

Community Treasure Hunt

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

Start Hunting!