mat数据格式是matlab的数据存储的标准格式。
你可以调用matlab的子程序库,用c或fortan调用mat格式的数据。
我给你几个函数名
matopen 打开mat文件
matclose 关闭mat文件
magetfp 取得mat文件的c语言句柄
matGetArray 取得一个数组
具体内容看联机文档
你可以调用matlab的子程序库,用c或fortan调用mat格式的数据。
我给你几个函数名
matopen 打开mat文件
matclose 关闭mat文件
magetfp 取得mat文件的c语言句柄
matGetArray 取得一个数组
具体内容看联机文档
解决方案 »
- 请教:串口怎样采集开关量
- 奇怪的RichEdit,高手看看什么原因?
- CString不支持Switch Case语句。 怎样把它正确的转成if else if else if else...
- 用sendmessage模拟按下alt 组合键,怎么做?怎么没有VK_ALT这类的?
- 菜鸟请教
- vc中的按钮的OnDoubleclick事件是怎么用的啊 ?请高手指点。
- 我想在我的 com 中返回我自定义的HRESULT 值,并且能让调用它的程序认识该怎么做??
- 一个英文项目,看有人能看懂,接单吗?
- 如何实现多任务的http下载-----急
- 请问,我究竟学什么来编程好?
- 急需win2000server中文正式版,哪里有下载?
- 如何结束一个dos下的进程,请知道的都来说两句,谢谢!!!
#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.