Error in using join command
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ivan Mich
am 28 Dez. 2022
Beantwortet: Kunal Kandhari
am 17 Jan. 2023
Hello,
I have a problem about using join cmmand. I have two tables and I would like to join them, taking into consideration the first column (Var1). I use
C=join(A,B);
where A and B are tables, but command window shows me
Error using tabular/join (line 130)
Left and right key variables 'Var1' and 'Var1' are not comparable because one is a non-cell.
Could you please help me?
1 Kommentar
the cyclist
am 28 Dez. 2022
Bearbeitet: the cyclist
am 28 Dez. 2022
Can you upload the data (or a subset)? You can use the paper clip icon in the INSERT section of the toolbar.
The error message is fairly clear. If the two columns are not the same data type, you presumably need to convert one of them, to do the join.
Akzeptierte Antwort
Kunal Kandhari
am 17 Jan. 2023
Hi,
From the error messgae it seems like two columns doesn't have the same data type and you need to convert one of them.
Following resources would be helpful to you:
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Tables finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!