MergeTables

Merges one table into an existing table while making sure the datatypes are the same.
5 Downloads
Updated 26 Sep 2022

View License

% [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 (2024). MergeTables (https://www.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 Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.1

added possibility to specify the sheet of the second table (to specify sheet of Table1, just import it correctly before running this function)

1.0.0