Matlab中 intersect 函数用法或者说查找重复值位置
Mostra commenti meno recenti
假如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 Commento
Shi Song
il 22 Mar 2020
find(B==2 | B==4 | B==6)
Risposte (0)
Categorie
Scopri di più su Whos in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!