mat数据格式是matlab的数据存储的标准格式。
你可以调用matlab的子程序库,用c或fortan调用mat格式的数据。
我给你几个函数名
matopen   打开mat文件
matclose 关闭mat文件
magetfp 取得mat文件的c语言句柄
matGetArray  取得一个数组
具体内容看联机文档

解决方案 »

  1.   

    Opens a MAT-fileC Syntax
    #include "mat.h"
    MATFile *matOpen(const char *filename, const char *mode);
    Arguments
    filename
       Name of file to open.mfp
       Pointer to MAT-file information.mode
       File opening mode. Legal values for mode are:r
    Opens file for reading only; determines the current version of the MAT-file by
    inspecting the files and preserves the current version.
    u
    Opens file for update, both reading and writing, but does not create the file if
    the file does not exist (equivalent to the r+ mode of fopen); determines the
    current version of the MAT-file by inspecting the files and preserves the current
    version.
    w
    Opens file for writing only; deletes previous contents, if any.
    w4
    Creates a MATLAB 4 MAT-file.Description
    This routine allows you to open MAT-files for reading and writing.matOpen opens the named file and returns a file handle, or NULL if the open fails.Example
    See matcreat.c and matdgns.c in the eng_mat subdirectory of the examples directory
    for sample programs that illustrate how to use the MATLAB MAT-file routines in a C
    program.
      

  2.   

    goldcattle(海边的云) ,高手,佩服,那你做过读一幅图(matlab中保存的)的程序么?比如经常用小波变换处理后的图,怎样用c打开