Redian新闻
>
有人用过Matlab的Compiler吗?或者是否有什么工具能把Matlab程序转成C, C++?
avatar
有人用过Matlab的Compiler吗?或者是否有什么工具能把Matlab程序转成C, C++?# Computation - 科学计算
o*r
1
Matlab编程很容易上手, 但运算速度很慢。主要原因是运行Matlab程序时候必须打开
Matlab软件,占用了很多系统资源。
看到Matlab网上的Matlab Compiler的介绍,它能把Matlab程序直接转成可执行文件。
不知是否有人用过这个软件,效果如何?
此外,如果不用这个Matlab compiler,是否有类似的工具可以把Matlab程序转换成C, C
++,或可执行文件?
谢谢
avatar
s*b
2
matlab运行慢是因为他是解释语言。

C

【在 o****r 的大作中提到】
: Matlab编程很容易上手, 但运算速度很慢。主要原因是运行Matlab程序时候必须打开
: Matlab软件,占用了很多系统资源。
: 看到Matlab网上的Matlab Compiler的介绍,它能把Matlab程序直接转成可执行文件。
: 不知是否有人用过这个软件,效果如何?
: 此外,如果不用这个Matlab compiler,是否有类似的工具可以把Matlab程序转换成C, C
: ++,或可执行文件?
: 谢谢

avatar
o*r
3

谢谢回帖,不过不是很关心这个细节。
不知你对这个帖子的问题有什么有帮助的回答吗?

【在 s**b 的大作中提到】
: matlab运行慢是因为他是解释语言。
:
: C

avatar
s*b
4
没有

【在 o****r 的大作中提到】
:
: 谢谢回帖,不过不是很关心这个细节。
: 不知你对这个帖子的问题有什么有帮助的回答吗?

avatar
g*y
5
the complier can wrap Matlab's m file to exe file. However, the .exe file
still need to call the matlab engine.So, the speed is the same. The reason
to use complier is to protect your copyright of the program, since people
can not access your original code.
If you want to accelerate your matlab program, you can use mex function,
which is able to run the core operation parts(time consuming parts) in the
similar speed as C or Fortran.

C

【在 o****r 的大作中提到】
: Matlab编程很容易上手, 但运算速度很慢。主要原因是运行Matlab程序时候必须打开
: Matlab软件,占用了很多系统资源。
: 看到Matlab网上的Matlab Compiler的介绍,它能把Matlab程序直接转成可执行文件。
: 不知是否有人用过这个软件,效果如何?
: 此外,如果不用这个Matlab compiler,是否有类似的工具可以把Matlab程序转换成C, C
: ++,或可执行文件?
: 谢谢

avatar
s*b
6
compiling m function to exe file can speed up your code.
In my case, I observe it is about 3 times faster than m file.
But not sure in other cases.

【在 g****y 的大作中提到】
: the complier can wrap Matlab's m file to exe file. However, the .exe file
: still need to call the matlab engine.So, the speed is the same. The reason
: to use complier is to protect your copyright of the program, since people
: can not access your original code.
: If you want to accelerate your matlab program, you can use mex function,
: which is able to run the core operation parts(time consuming parts) in the
: similar speed as C or Fortran.
:
: C

avatar
g*y
7
anyway,based on my own experience, the difference is not much:), if you cons
idering 10 to 100 times speed acceleration by mixing C/Fortran and Matlab.
another bad thing for matlab exe file is that should be distributed with the
mrcinstaller, which is too huge, if the destination machine doesn't have Ma
tlab.Also the version of the Matlab in the origin and destination machine ne
ed to be compatible.

【在 s**b 的大作中提到】
: compiling m function to exe file can speed up your code.
: In my case, I observe it is about 3 times faster than m file.
: But not sure in other cases.

avatar
s*b
8
your comment is informative.
3x.

cons
the
Ma
ne

【在 g****y 的大作中提到】
: anyway,based on my own experience, the difference is not much:), if you cons
: idering 10 to 100 times speed acceleration by mixing C/Fortran and Matlab.
: another bad thing for matlab exe file is that should be distributed with the
: mrcinstaller, which is too huge, if the destination machine doesn't have Ma
: tlab.Also the version of the Matlab in the origin and destination machine ne
: ed to be compatible.

avatar
l*g
9
embedded matlab

C

【在 o****r 的大作中提到】
: Matlab编程很容易上手, 但运算速度很慢。主要原因是运行Matlab程序时候必须打开
: Matlab软件,占用了很多系统资源。
: 看到Matlab网上的Matlab Compiler的介绍,它能把Matlab程序直接转成可执行文件。
: 不知是否有人用过这个软件,效果如何?
: 此外,如果不用这个Matlab compiler,是否有类似的工具可以把Matlab程序转换成C, C
: ++,或可执行文件?
: 谢谢

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。