Combine 5 datasets into single file

Hi All,
I want to combine 6 different excel datasheets into a single worksheet.. each datasheet is a different part of an experiment that has collected different data/new information e.g. some of the files have new/different data fields (columns). Each file has a common identifier collumn called subject id - identifies each individual participant.
What I want is to create one sheet combining all participant data.
Thank you in advance.

Answers (1)

Star Strider
Star Strider on 25 Apr 2020
Create the worksheets in different tables, then use the outerjoin function to combine them. Use the subject ID for the ‘Key’. Experiment with the various options (for example ‘MergeKeys’) to get the result you want.

Products

Release

R2020a

Asked:

on 25 Apr 2020

Answered:

on 25 Apr 2020

Community Treasure Hunt

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

Start Hunting!