Merge tables based on a string key

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

 Respuesta aceptada

Dyuman Joshi
Dyuman Joshi el 13 de Nov. de 2023

0 votos

3 comentarios

Monkey Coder
Monkey Coder el 13 de Nov. de 2023
thanks. it seems it is not available in R2018A. Is there anyway I can join them without innerjoin?
Dyuman Joshi
Dyuman Joshi el 13 de Nov. de 2023
Editada: Dyuman Joshi el 13 de Nov. de 2023
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.
Monkey Coder
Monkey Coder el 13 de Nov. de 2023
Thanks, my mistake - it is available in R2018a.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Versión

R2018a

Etiquetas

Preguntada:

el 13 de Nov. de 2023

Comentada:

el 13 de Nov. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by