Error when combine tables vertically

조회 수: 4 (최근 30일)
Jinyang Du
Jinyang Du 2021년 6월 7일
댓글: Jinyang Du 2021년 6월 8일
These are my two tables I want to combine vertically. I tried to use the vercat() function. But it always says
An error occurred when concatenating the table variable 'posture' using VERTCAT.
Caused by:
Error using vertcat
Dimensions of arrays being concatenated are not consistent.
Could someone help me?

채택된 답변

KSSV
KSSV 2021년 6월 7일
Read the csv files using readtable
T1 = readtable('up_all.csv') ;
T2 = readtable('upt_all.csv') ;
The last variable name is different, so you cannot join them. Rename the variable name to same.
T1 = renamevars(T1,'Var1','posture') ;
Now join both the tables .
T = [T1 ; T2] ;

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by