主要内容

MATLAB Fortran API读取mat文件数据

读写MATLAB®来自Fortran程序的数据

在编写自定义应用程序之前,通过回顾以下主题来确定MATLAB是否满足您的数据交换需求。

Fortran MAT-File API

matOpen 打开MAT-file
matClose 关闭MAT-file
MATFile 类型MAT-file
matGetVariable 从MAT-file数组
matGetVariableInfo 只提供数组头信息
matGetNextVariable mat文件中的下一个数组
matGetNextVariableInfo 只提供数组头信息
matPutVariable 数组来MAT-file
matPutVariableAsGlobal 数组到mat文件,作为源自全局工作区
matDeleteVariable 从mat文件中删除数组
matGetDir mat文件中的变量列表
mxIsFromGlobalWS 确定mxArray是否被复制MATLAB全球的工作区

主题

用Fortran创建mat文件

matdemo1。Fexample创建了mat文件,matdemo.mat

用Fortran读mat文件

matdemo2。F示例说明了如何使用库例程来读取由matdemo1。F并描述它的内容。