Input files editing format
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    RAKESH KUMAR TOTA
 el 18 de En. de 2021
  
    
    
    
    
    Comentada: RAKESH KUMAR TOTA
 el 18 de En. de 2021
            Hi, Good morning
I have an input file input.txt, i need to save the format in different two files node.txt and el.txt in the format attached files. Any help would be appreciated . Thank you inadvance. 
2 comentarios
Respuesta aceptada
  Walter Roberson
      
      
 el 18 de En. de 2021
        fid = fopen('input.txt', 'r');
nodedata = cell2mat( textscan(fid, '%*f,%f,%f', 'CommentStyle', {'*Heading', '*Node'}) );
eldata = cell2mat( textscan(fid, '%*f,%f,%f,%f,%f', 'HeaderLines', 1) );
fclose(fid)
8 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Data Import and Analysis 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!