Merge tables based on a string key
2 次查看(过去 30 天)
显示 更早的评论
I have the following tables:
Table1:
Code | Description
AAA | Desc for A
BBB | Desc for B
CCC | Desc for C
Table2:
Code | Last Updated
AAA | 10/11/2023
CCC | 11/11/2023
BBB | 12/11/2023
How can I create a combined table like Table3 below:
Code | Description | Last Updated
AAA | Desc for A | 10/11/2023
BBB | Desc for B | 12/11/2023
CCC | Desc for C | 11/11/2023
0 个评论
采纳的回答
Dyuman Joshi
2023-11-13
Use innerjoin
3 个评论
Dyuman Joshi
2023-11-13
编辑:Dyuman Joshi
2023-11-13
innerjoin() was introduced in R2013b, it must be there in R2018a.
Do you get some error when using it? If so, please share the error message (i.e. all of the red text) and attach the data you are working with.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!