Open 1to1 left.csv: | Open 1to1 right.csv: |
L = readtable('1to1 left.csv') | R = readtable('1to1 right.csv') |
L = Key Veggies _____ __________ 'Mon' 'Broccoli' 'Tue' 'Celery' 'Thu' 'Lettuce' 'Fri' 'Spinach' | R = Key Fruits _____ __________ 'Mon' 'Apples' 'Wed' 'Bananas' 'Thu' 'Cherries' 'Sat' 'Dates' |
>> IJ = innerjoin(L,R,'LeftKeys','Key','RightKeys','Key')
IJ =
Key Veggies Fruits
_____ __________ __________
'Mon' 'Broccoli' 'Apples'
'Thu' 'Lettuce' 'Cherries'
% Alternatively:
% IJ = innerjoin(L,R,'Keys','Key')
% or, more compactly,
% IJ = innerjoin(L,R)
>> whos
Name Size Bytes Class Attributes
IJ 2x3 2700 table
L 4x2 2698 table
R 4x2 2692 table
Functions referenced:
More information:
--- The End ---