How do I find elements of one array in another array?
15 次查看(过去 30 天)
显示 更早的评论
Here are my example arrays:
A1 =
{'Cheating' }
{'Discount stealing'}
{'Traffic Cones' }
A2 = {'Skipping Work' }
{'Accidental Betrayal ' }
{'Traffic Cones' }
{'Cheating' }
{'Discount Stealing' }
{'Office Space' }
{'Drowning Baby' }
{'Giving tuesday' }
{'Helping Little Old Lady With Groceries'}
{'Lady Fell' }
{'Underground Baggage' }
{'Canteen Ladies' }
I would like to find the indices in A2 that have the elements of A1 and save these indices in a variable 'match_indx'.
Thank you!!
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!