Skip to content

innerjoin

table · scripts/table/innerjoin.m

INNERJOIN  Inner join of two tables or timetables (MATLAB compat).

  C = innerjoin (A, B)               % join on common variable names
  C = innerjoin (A, B, "Keys", key)  % join on named key variable(s)
  C = innerjoin (..., "LeftVariables", vars, "RightVariables", vars)

  For two timetables, the default keys are the row times (RowTimes /
  DimensionNames{1}), not common variable names.  Output is a timetable.
  If Tleft is a timetable and Tright is a table, keys default to common
  variable names and the result is a timetable.  If Tleft is a table,
  Tright must also be a table (MATLAB R2026a).