- #1
Monserrat
- 1
- 0
I have a small problem to insert a code in fortran to generate me a graph in .dat only need to Fortran insert a command that I may run in the program of .dat
If the data can be written to a comma separated file (CSV) file, then there are a lot of programs like Excel or R that can read and graph the data. Matlab is expensive and may not be available.jedishrfu said:Perhaps you could instead use MATLAB to read the .dat file and generate a graph for you.
Fortran is a programming language commonly used in scientific and engineering applications. It was developed in the 1950s and is known for its efficiency in performing mathematical and scientific calculations.
To generate a program in Fortran, you will need to use a text editor or an Integrated Development Environment (IDE) that supports Fortran. You will also need to have a Fortran compiler installed on your computer in order to compile and run the program.
A .dat file is a data file that stores information in a plain text format. It is commonly used to store data that will be used by a program, such as input parameters or output results.
To write data to a .dat file in Fortran, you will need to use the "WRITE" statement. This statement allows you to specify the format of the data and the file to which it will be written.
Yes, .dat files can be read by other programs as long as the format of the data is compatible. However, it is important to keep in mind that different programs may interpret the data differently, so it is important to ensure compatibility or specify the format of the data in the file.