Relational Join

版本 1.0.0.0 (3.5 KB) 作者: Stefan Schroedl
Relational Join of Two Matrices
941.0 次下载
更新时间 2008/4/1

查看许可证

Example:
A = [ 3 4 5; 1 2 3; 6 7 8];
B = [ 9 10 11; 3 4 55; 6 7 88];
join(A,1:2,B,1:2)

ans =
3 4 5 55
6 7 8 88

Join options (inner, outer left, right, full) supported

Matlab contains a number of set-oriented function like INTERSECT, UNIQUE, UNION, SETDIFF, SETXOR, ISMEMBER. However, one interesting missing function is something similar to a database-like JOIN. This can be written using above functions, but requires a for-loop which makes it very slow for large datasets.

We supply a C++- mex file and a wrapper matlab function.

引用格式

Stefan Schroedl (2024). Relational Join (https://www.mathworks.com/matlabcentral/fileexchange/19402-relational-join), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Tables 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0