I want to combine 2 variables in matlab into one variable

조회 수: 74 (최근 30일)
Anthony Santana
Anthony Santana 2021년 11월 7일
댓글: Anthony Santana 2021년 11월 10일
I have uploaded an excel file into matlab. Due to my excel row limits, my 1.5MM data points had to be imported as two columns (1 to 1MM, 1MM to 1.5MM). Matlab asked me to name the two columns as two variable names to import them. Is there a simple command to combine the two variables into one column in matlab?
Thanks!
T

채택된 답변

Alan Stevens
Alan Stevens 2021년 11월 7일
If they are imported as, say, c1 and c2, then you can simply write
c = [c1; c2];
then delete the c1 and c2 if you don't need them anymore.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by