Scrittura di programmi in Fortran per la lettura di dati di file MAT
Leggere e scrivere dati di MATLAB® da programmi in Fortran
Prima di scrivere un'applicazione personalizzata, determinare se MATLAB soddisfa le esigenze di scambio dei dati esaminando i seguenti argomenti.
La funzione
importdatae Import Images, Audio, and Video Interactively.
API file MAT in Fortran
matOpen | Open MAT-file |
matClose | Close MAT-file |
MATFile | Type for MAT-file |
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 |
Argomenti
- Create MAT-File in Fortran
The
matdemo1.Fexample creates the MAT-file,matdemo.mat. - Read MAT-File in Fortran
The
matdemo2.Fexample illustrates how to use the library routines to read the MAT-file created bymatdemo1.Fand describe its contents.