Error in using join command

조회 수: 2 (최근 30일)
Ivan Mich
Ivan Mich 2022년 12월 28일
답변: Kunal Kandhari 2023년 1월 17일
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
the cyclist
the cyclist 2022년 12월 28일
편집: the cyclist 2022년 12월 28일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

Kunal Kandhari
Kunal Kandhari 2023년 1월 17일
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개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by