o****r 发帖数: 57 | 1 Matlab编程很容易上手, 但运算速度很慢。主要原因是运行Matlab程序时候必须打开
Matlab软件,占用了很多系统资源。
看到Matlab网上的Matlab Compiler的介绍,它能把Matlab程序直接转成可执行文件。
不知是否有人用过这个软件,效果如何?
此外,如果不用这个Matlab compiler,是否有类似的工具可以把Matlab程序转换成C, C
++,或可执行文件?
谢谢 | s**b 发帖数: 169 | 2 matlab运行慢是因为他是解释语言。
C
【在 o****r 的大作中提到】 : Matlab编程很容易上手, 但运算速度很慢。主要原因是运行Matlab程序时候必须打开 : Matlab软件,占用了很多系统资源。 : 看到Matlab网上的Matlab Compiler的介绍,它能把Matlab程序直接转成可执行文件。 : 不知是否有人用过这个软件,效果如何? : 此外,如果不用这个Matlab compiler,是否有类似的工具可以把Matlab程序转换成C, C : ++,或可执行文件? : 谢谢
| o****r 发帖数: 57 | 3
谢谢回帖,不过不是很关心这个细节。
不知你对这个帖子的问题有什么有帮助的回答吗?
【在 s**b 的大作中提到】 : matlab运行慢是因为他是解释语言。 : : C
| s**b 发帖数: 169 | 4 没有
【在 o****r 的大作中提到】 : : 谢谢回帖,不过不是很关心这个细节。 : 不知你对这个帖子的问题有什么有帮助的回答吗?
| g****y 发帖数: 199 | 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 : ++,或可执行文件? : 谢谢
| s**b 发帖数: 169 | 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
| g****y 发帖数: 199 | 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.
| s**b 发帖数: 169 | 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.
| l***g 发帖数: 1035 | 9 embedded matlab
C
【在 o****r 的大作中提到】 : Matlab编程很容易上手, 但运算速度很慢。主要原因是运行Matlab程序时候必须打开 : Matlab软件,占用了很多系统资源。 : 看到Matlab网上的Matlab Compiler的介绍,它能把Matlab程序直接转成可执行文件。 : 不知是否有人用过这个软件,效果如何? : 此外,如果不用这个Matlab compiler,是否有类似的工具可以把Matlab程序转换成C, C : ++,或可执行文件? : 谢谢
|
|