matlab中找出两个数组相同数据的个数的函数

2025-01-01 04:55:50
推荐回答(1个)
回答1:

>> a=[1,2,3,4,5,6]
a =
1 2 3 4 5 6
>> b=[2,3,5,8,10]
b =
2 3 5 8 10
>> intersect(a,b)
ans =
2 3 5
>>