MergeTables
Version 1.0.1 (1.62 KB) by
Micke Malmström
Merges one table into an existing table while making sure the datatypes are the same.
% [MergedDataTable] = MergeTables(Table1,Table2,Table2SheetName)
% Merges two tables (from excel files) making sure that the imported tables
% have same dataformat
% input: Table1 (table or filepath-string to the master table which
% decides the dataformat of the merged table)
% Table2 (filepath-string to the seccond table with data to be
% added to the Table1)
% Table2SheetName Sheet name of Table2 (String)
%
% output MergedDataTable contains the outer join of the two tables
% CC Swerim
Cite As
Micke Malmström (2026). MergeTables (https://in.mathworks.com/matlabcentral/fileexchange/118130-mergetables), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
