saving data in .dat files
    38 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    THONTI BEERAIAH
 el 10 de Sept. de 2020
  
    
    
    
    
    Editada: THONTI BEERAIAH
 el 12 de Sept. de 2020
            In below code how to save the values of sr and sl in .dat file separately
0 comentarios
Respuesta aceptada
  Ameer Hamza
      
      
 el 10 de Sept. de 2020
        There is no specific format for a .dat file. You can use writematrix(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/writematrix.html or dlmwrite(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/dlmwrite.html in older versions.
For example,
writematrix(sr, 'filename.dat') % or dlmwrite('filename.dat', sr);
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Text Files 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!