Merge matrices

(in a SQL equijoin)

You are now following this Submission

Function JOINMAT implements SQL 'join' operation with a single equality condition.
http://en.wikipedia.org/wiki/Join_(SQL)

It has been tested with numeric keys only, and not optimized; improvements are enthusiastically welcomed.

See also the dataset-array version JOINDST.

PS. Note that output rows are sorted, and Inf values are treated in the same way as (but are distinguished from) NaN values.

Cite As

Dimitri Shvorob (2026). Merge matrices (https://www.mathworks.com/matlabcentral/fileexchange/21229-merge-matrices), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

BSD
link to JOINDST