Matlab中 intersect 函数用法或者说查找重复值位置
Ältere Kommentare anzeigen
假如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 Kommentar
Shi Song
am 22 Mär. 2020
find(B==2 | B==4 | B==6)
Antworten (0)
Kategorien
Mehr zu Whos finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!