Merging multiple csv files into one mat file
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Ahmad Hasnain
 el 18 de Abr. de 2019
  
    
    
    
    
    Respondida: KSSV
      
      
 el 18 de Abr. de 2019
            I have multiple csv files (37 files). Every csv file has a column and it want to merge it into one mat file so that I get a mat file with 37 columns. How can I do that? 
0 comentarios
Respuesta aceptada
  KSSV
      
      
 el 18 de Abr. de 2019
        csvfiles = dir('*.csv') ; 
N = length(csvfiles) ; 
A = cell(N,1) ;
for i = 1:N
    A{i} = csvread(csvfiles(i).name)
end
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Database Toolbox en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

