How does Fortran90 saves matrices and how does Matlab reads them?
3 views (last 30 days)
Show older comments
Hi,
I try to understand the following three lines of Fortran code, as I am trying to recalculate a paper from Christina Arellano without using Fortran as I don't have access to it at our university.
"open (unit=9, file="C:\Arellano\default\sav.f90", position="rewind")
write (9, *) sav
close (unit=9)"
I get that it is used to save the matrix "sav" to the file "sav.f90".
But how is it saved exactly?
"sav" is a 21 times 200 matrix.
Are the numbers of the matrix still in matrix from or are the numbers saved in one big vector?
She then uses this data for a Matlab code.
She introduces the data with the following line:
"sav=dlmread('c:\Arellano\default\sav.f90','');"
How does now "sav" look like in Matlab?
Thanks for your help.
Best regards, Frédérique
0 Comments
Answers (0)
See Also
Categories
Find more on Fortran with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!