Opérations sur des ensembles
Les opérations sur des ensembles comparent les éléments de deux ensembles pour identifier ceux qui sont communs ou différents. Dans MATLAB®, ces ensembles sont des tableaux de nombres, dates, heures ou données texte. La plupart des opérations sur des ensembles comparent des ensembles sur la base d’une égalité exacte, ce qui peut poser un problème dans le contexte de l’arithmétique à virgule flottante. C’est pourquoi les fonctions ismembertol
et uniquetol
sont également disponibles pour les comparaisons avec tolérance.
Fonctions
intersect | Set intersection of two arrays |
ismember | Array elements that are members of set array |
setdiff | Set difference of two arrays |
setxor | Set exclusive OR of two arrays |
union | Set union of two arrays |
unique | Unique values in array |
ismembertol | Members of set within tolerance |
uniquetol | Unique values within tolerance |
join | Combine two tables or timetables by rows using key variables |
innerjoin | Inner join between two tables or timetables |
outerjoin | Outer join between two tables or timetables |
Rubriques
- Average Similar Data Points Using a Tolerance
This example shows how to average a group of points that are within tolerance. This approach produces a reduced data set that still holds the general shape of the original data.
- Group Scattered Data Using a Tolerance
This example shows how to group scattered data points based on their proximity to points of interest.