Common numbers between arrays
Mostrar comentarios más antiguos
Hello,
I want to write a function that list out all common numbers between at least two array in a cell consisting of many arrays.
For instance, assume you have a cell array A = {[1,2,3], [3 4 5 6], [3 7 8 2], [11 3 15]}.
the result must be
A{1} = 2,3
A{2} = 3
A{3} = 3,2
A{4} = 3
Thank you a lot
Respuesta aceptada
Más respuestas (1)
KSSV
el 31 de Mzo. de 2020
1 voto
Read about intersection.
Categorías
Más información sobre Data Types en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!