Escribir programas de Fortran para leer datos de archivos MAT
Lea y escriba datos de MATLAB® desde programas de Fortran
Antes de escribir una aplicación personalizada, revise los siguientes temas para determinar si MATLAB satisface sus necesidades de intercambio de datos.
API de archivos MAT de Fortran
matOpen | Open MAT-file |
matClose | Close MAT-file |
MATFile | Tipo para archivo MAT |
matGetVariable | Array from MAT-file |
matGetVariableInfo | Array header information only |
matGetNextVariable | Next array in MAT-file |
matGetNextVariableInfo | Array header information only |
matPutVariable | Array to MAT-file |
matPutVariableAsGlobal | Array to MAT-file as originating from global workspace |
matDeleteVariable | Delete array from MAT-file |
matGetDir | List of variables in MAT-file |
mxIsFromGlobalWS | Determine whether mxArray was copied from MATLAB global workspace |
Temas
- Create MAT-File in Fortran
The
matdemo1.F
example creates the MAT-file,matdemo.mat
. - Read MAT-File in Fortran
The
matdemo2.F
example illustrates how to use the library routines to read the MAT-file created bymatdemo1.F
and describe its contents.