HOW TO MERGE CSV FILE?

3 visualizaciones (últimos 30 días)
Arijeet Sinha
Arijeet Sinha el 26 de Sept. de 2018
Editada: Walter Roberson el 26 de Sept. de 2018
I want to merge csv files with same name but in different subfolder and plot them for my choice of column.
I write this code till now:
addpath(genpath('C:/Users/Arijeet/Downloads/folder_name'));
[v,T,vT]=csvread('*.csv');
t=v(:,1);y=v(:,2);
plot(t,y);
It has 207 columns.
This code read all file but plot only the last one.
  1 comentario
Stephen23
Stephen23 el 26 de Sept. de 2018
Where in the csvread help does it mention this syntax with an asterisk?:
csvread('*.csv')
Reading the documentation is much more efficient than guessing how MATLAB works.

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 26 de Sept. de 2018
Run a loop for each file.....and use hold on for plotting.

Categorías

Más información sobre Big Data Processing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by