Main Content

Operaciones con conjuntos

Uniones, intersección, pertenencia a un conjunto

Las operaciones con conjuntos comparan los elementos de dos conjuntos para buscar similitudes o diferencias. En MATLAB®, los conjuntos son arreglos de datos de texto, números, fechas u horas. La mayoría de las operaciones con conjuntos compara conjuntos en busca de una igualdad exacta, lo que puede ser problemático en el contexto de la aritmética en punto flotante. Por este motivo, las funciones ismembertol y uniquetol también están disponibles para realizar comparaciones con tolerancia.

Funciones

intersectSet intersection of two arrays
ismemberArray elements that are members of set array
setdiffSet difference of two arrays
setxorSet exclusive OR of two arrays
unionSet union of two arrays
uniqueValores únicos en un arreglo
ismembertolMembers of set within tolerance
uniquetolUnique values within tolerance
joinCombine two tables or timetables by rows using key variables
innerjoinInner join between two tables or timetables
outerjoinOuter join between two tables or timetables

Temas