- Use data file to communicate before FORTRAN code and matlab program. Use matlab to so a system call of standard alon FORTRAN executable. FORTRAN program generates the output in a data file. Then MATLAB read in the data.
- Write Fortran mex file to call fortran inside matlab.
How to give output of Fortran code into MATLAB
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a mathematical model of a physical system written entierly in Fortran. I want to design a controller for that system in Matlab.
For this, I need to transfer the output of the system model from Fortran into Matlab, where Matlab is gonna recieve the output of the
system model and run it through the controller and send it back to Fortran. How can I achieve this?
Thanks!
댓글 수: 0
채택된 답변
Chunru
2021년 8월 13일
There are two possible approaches:
댓글 수: 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!