Problem merging csv files.

I have 2 csv files and have read them successfully using the dlmread command. However, now I need to merge them using the common dates and then perform descriptive statistics.
R=dlmread('ff3all.csv',',',1,0);
A=dlmread('assignment4.csv',';',1,0);
I tried to do A+R; but I get the error that they must be in same dimensions.Can someone please help.
I have attached the files.

Respuestas (1)

Walter Roberson
Walter Roberson el 25 de Oct. de 2017

0 votos

read them with readtable(), convert them to timetable() objects. Then you can synchronize() the entries
You could also consider reading them with readtable(), and using join()

Etiquetas

Preguntada:

el 25 de Oct. de 2017

Respondida:

el 25 de Oct. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by