FUNCTION REFERENCE
outerjoin
Join two tables keeping unmatched rows.
Join two tables keeping unmatched rows.
Syntax
[T, ileft, iright] = outerjoin(Tleft, Tright, 'Type', 'full'|'left'|'right', 'MergeKeys', tf, ...)Takes the innerjoin options. Unmatched rows get missing values (NaN, '', <missing>, NaT; false/0 for logical and integer variables) and index 0. Without MergeKeys both key variables are kept with _<input name> suffixes; with MergeKeys one key variable holds the key of either side.
Example
outerjoin(table([1;2], 'VariableNames', {'id'}), table([2;3], [20;30], 'VariableNames', {'id','v'}), 'MergeKeys', true) % id 1, 2, 3Differences from MATLAB: Row-name keys and empty input tables are not supported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.