Fortran data out

writes a file containing a Fortran 77 data statement from a matlab data vector
784 Downloads
Updated 18 May 2006

No License

Takes a MATLAB vector and outputs to a file a FORTRAN 77 data statement. 5 numbers per line formated as 0.00000E+00, will use as many lines as necessary with a continue statement in column 5.
Example,
fortrandataout([1 2 3 4 5 6],my_data,filename)
creates the file called filename containing

data my_data /
& 1.00000E+00, 2.000000E+00, 3.000000E+00, 4.000000E+00, 5.000000E+00,
& 6.000000E+00
& /

Cite As

Margaret Kimball (2024). Fortran data out (https://www.mathworks.com/matlabcentral/fileexchange/11107-fortran-data-out), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Fortran with MATLAB in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0