I want to combine 2 variables in matlab into one variable
77 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Anthony Santana
am 7 Nov. 2021
Kommentiert: Anthony Santana
am 10 Nov. 2021
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
0 Kommentare
Akzeptierte Antwort
Alan Stevens
am 7 Nov. 2021
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import from MATLAB 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!