avatar
Re: MEX file help# EE - 电子工程
b*t
1
generally MEX is codes in C or FORTRAN, which has an
interface to MATLAB .m files, i.e. the file would be
callable from .m files. the MEX file needs to be compiled
into machine codes, kind of executable.
you can use MCC to convert .m file into executable .exe
files, in C fashion.
avatar
t*g
2
go to mathworks.com and look for matlab API and matlab compiler
you can get some information.
Generally, .mex file is generated from C/Fortran code, which uses matlab
API to communicate with matlab. .mex file is considered as a kind of
matlab function, just like .m file started with "function" command.
I don't know about Fortran, but C code should begin with following
declarations:
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
If you want to generate code directly
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。