Hi. How can i open a file .dat in matlab to make graphs ?

Hi. How can i open a file .dat in matlab to make graphs and operations between arrays?

1 comentario

Theo
Theo el 13 de Mayo de 2015
See if you can open the dat file with a text editor such as notepad. if you can you can use textread and textscan to xtract the info. If so let me know the format and i'll write down the script.

Iniciar sesión para comentar.

 Respuesta aceptada

fid = fopen('YourFile.dat', 'r');
That opens the .dat file. Reading the data in it is a different question. There is no fixed format for .dat files: .dat files are any format convenient to the program that generated them. You need to know how your .dat file was generated in order to have a hope of extracting data from it.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by