PDA

查看完整版本 : 【求助】求助"MATLAB.hpp"在那里


fallinwith
2007-12-27, 16:13
在VC中
#include<stdlib.h>
#include<iostream.h>
#include"MATLAB.hpp"

static double data0[]={2,6,4,8};
static double data1[]={1,5,3,7};

int main()
{
mwArray mat0(2,2,data0);
mwArray mat1(2,2,data1);
mwArray mat2;
mat2=rdivide(plus (mat0,mat1),2);
cout<<mat0<<"\n"<<mat1<<"\n"<<mat2<<"\n";
return 1;

}

在MATLAB出现

>> mbuild exam1.cpp
exam1.cpp
exam1.cpp(2) : fatal error C1083: Cannot open include file: 'MATLAB.hpp': No such file or directory

D:\MATLAB7\BIN\WIN32\MEX.PL: Error: Compile of 'exam1.cpp' failed.

??? Error using ==> mbuild
Unable to complete successfully

>>

leishengwen
2009-08-29, 18:56
MATLAB.hpp是matlab7.0以前的版本才有的include文件,我这里有matlab6.5的库文件,你把它加载到工程里,再试一下

jammy
2011-06-05, 13:25
thank u for your sharing

jammy
2011-06-05, 13:31
libmwsglm.hpp 这个文件哪位有啊,麻烦给我发一个, [email protected]

thanks

guowei0502
2012-05-20, 17:14
那位有libmatlab.hpp这个份文件麻烦发给我谢谢[email protected]

yingwangzhao
2013-04-23, 08:42
太扯了,光有这个文件有啥用?????还是去找6.5整个的函数库吧。。。