How does Fortran90 saves matrices and how does Matlab reads them?
조회 수: 3 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Fortran with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!