关于如何将.m文件转换为.cpp文件? [英] About how to translate a .m file to a .cpp file?

查看:625
本文介绍了关于如何将.m文件转换为.cpp文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将.m文件转换为.cpp文件?
我有一个名为B.m的.m文件,我使用mcc -lcpp B命令,但是matlab告诉我警告:目录名称重复:d:\ Program
Files \ MATLAB \ R2009a \ toolbox \ compiler.
Depfun错误:``无效目录:d:\ Program Files \ MATLAB \ R2009a \ toolbox \ -p''
???使用==>时出错mcc
执行MCC时出错,返回状态= 1(0x1).
我使用的是本书后面的命令,这是我第一次使用此命令,不知道如何解决,您能帮我吗?

How to translate a .m file to a .cpp file?
I have a .m file named B.m ,I use mcc -lcpp B command,but matlab tell me that Warning: Duplicate directory name: d:\Program
Files\MATLAB\R2009a\toolbox\compiler.
Depfun error: ''Invalid directory: d:\Program Files\MATLAB\R2009a\toolbox\-p''
??? Error using ==> mcc
Error executing mcc, return status = 1 (0x1).
I use the command follow a book,this is the first time I use this command,I don''t know how to solve it,can you help me?

推荐答案

您可以查看本文和源代码: MATLAB MEX文件 [
You can check this article and source code: MATLAB MEX-files[^]


这篇关于关于如何将.m文件转换为.cpp文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆