joining two tables with two keys
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have two tables table 1 and table 2.
Table 1
day location expenses
1 Buckingham_Palace 1 million
1 Los_Angels 2 million
2 Los_Angels 1 million
2 New_York 1 million
Table 2
day location number_of_reporters
1 Los_Angels 300
2 Los_Angels 500
2 New York 100
Then I want to create table 3
day location expenses number of reporters
1 Buckingham_Palace 1 million
1 Los_Angels 2 million 300
2 Los_Angels 1 million 500
2 New_York 1 million 100
Please advise.
2 Commenti
Image Analyst
il 13 Giu 2020
Did you try join(), and outerjoin()? I thought I've referred you to this link before, but maybe not. So, fix your post (attach your tables in a .mat file) AFTER you read that link.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Tables in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!