append many .csv files together in a new csv file .

the files have different rows and columns.How to do it?
the csv files has both strings and numbers.
please tell elaborately.

 Risposta accettata

KSSV
KSSV il 4 Feb 2019
Read about readtable...you can read the data into tables...and append them.

5 Commenti

Show us the code...what error you are getting?
data1 = readtable('For_Karan_20181005.SBIN18OCTFUT.L10.csv');
data2= readtable('For_Karan_20181005.STATE BANK OF INDIA.L10.csv');
data3=readtable('Result360-04022019.csv');
writetable(data1, data2, data3,'new190.csv');
YOu need to join the tables into a single table and then write.
data = [data1 ; data2 ; data3] ;
writetable(data,'new190.csv');
again showing error .
it is saying all tables should have same variable names
Try converting Table to cell using table2cell and then append....

Accedi per commentare.

Più risposte (0)

Richiesto:

il 4 Feb 2019

Commentato:

il 5 Feb 2019

Community Treasure Hunt

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

Start Hunting!

Translated by