matlab在线编译器
㈠ 安装matlab的时候没有配置编译器怎么办
重新安装一下matlab,选择custom安装,然后只选编译器个工具,其他的都勾掉就可以了
㈡ matlab2009a用什么编译器
问题描述:系统为win7 64bits,软件为matlab2009a和VS2008,在matlab中输入命令行max -setup,找不到VS2008编译器。
解决方法:
1.下载Microsoft Visual C++ 2008 Express for MatLab,按里面的readme.txt执行操作
Place these three files in C:\Program Files\MATLAB\R2007a\bin\win64\mexopts:
msvc90freeengmatopts.bat
msvc90freematopts.bat
msvc90freematopts.stp
Replace these three files in C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin:
vcvars32.bat
vcvars64.bat
vcvarsx86_amd64.bat
2.修改msvc90freematopts.stp
The file msvc90freematopts.stp on line 51 contains a reference to 'v6.1' change this to 'v6.0a'
3.添加环境变量
The environment variable MSSdk needs to be changed to c:\Program Files\Microsoft SDKs\Windows\v6.0a
一般按这样操作后就可以通过max -setup选择编译器了,但是我在执行上述操作后,虽然matlab能够找到VS2008编译器,但是会有错误,提示为需要安装C++ 64bits compiler and tool 和SDK。其原因是在安装VS2008的时候,如果是按默认设置进行的话,是不会安装C++ 64bits compiler and tool,此时你需要重新安装VS2008,并按自定义安装,在C++选项下面选择 C++ 64bits compiler and tool,当安装完成后,一切就OK了。
㈢ MATLAB需要支持的编译器
在MATLAB的Command Window下输入命令 mbuild –setup,并根据MATLAB的提示选择合适的编译器,使用Microsoft Visual C++6.0,进行对C++连接环境的设置。
过程如下:
>> mbuild -setup
按照提示选择操作,选择编译器进行安装
然后,在MATLAB的Command Window下输入命令 mex –setup,进行对编译环境的设置。过程如下:
>> mex -setup
按照提示选择操作,选择你所需要的编译器就可以了。
㈣ 关于matlab编译器
直接用MATLAB自带的编译器:
APPS--->Application Compiler--->点击‘add main file’右边的加号,添加主函数,进行编译就行了。
注:如果你想把exe拿到没有MATLAB的机子上运行的话,记得选中‘Runtime included in package’(Application Compiler界面里)。在文件夹找到该文件,进行安装就行了
㈤ 如何查看和修改MATLAB已经安装的编译器
使用mex -setup命令
不能同时安装的,只能选择其中的一个。你的系统是可以安装多个的,你可以选择一个用于matlab!
㈥ 如何使用matlab与vs编译器
1. 安装
单独安装、和MATLAB同时安装。
2. 设置(以vs2005为例)
>> mbuild -setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in D:\PROGRA~1\MATLAB\R2010a\sys\lcc
[2] Microsoft Visual C++ 2008 SP1 in D:\Program Files\Microsoft Visual Studio 9.0
[3] Microsoft Visual C++ 2005 SP1 in C:\Program Files\Microsoft Visual Studio 8
[0] None
Compiler: 3
Please verify your choices:
Compiler: Microsoft Visual C++ 2005 SP1
Location: C:\Program Files\Microsoft Visual Studio 8
Are these correct [y]/n?
Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2010a\compopts.bat
From template: D:\PROGRA~1\MATLAB\R2010a\bin\win32\mbuildopts\msvc80compp.bat
Done . . .
3. 使用
(1)在 MATLAB 环境中使用 mcc 命令;
(2)在系统命令环境中使用 mcc.exe (在Windows上);
(3)在 MATLAB 环境中使用 Deployment Tool。
4. 程序发布
(1)使用 MATLAB 命令 builder;
(2)使用 Deployment Tool 图形化工具。
一般来说,需要发布的文件有3个:
(1)编译得到的可执行文件或库函数;
(2)CTF 文件;
(3)MCRInstaller.zip。
在最终用户的计算机上,首先需要把MCRInstaller.zip 解压,并把 MCR 中可执行文件所在目录添加到系统路径上,然后就可以使用编译后的程序了。
㈦ matlab文本编译器如何打开
edit
%直接输入edit就可以打开文本编译器。
%或者打开file中的New在点击
M-file就可以了。
㈧ 如何设置matlab 编译器 mex
mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in D:\Programs\MATLAB\R2010a\sys\lcc
[2] Microsoft Visual C++ 2005 SP1 in D:\Program Files\Microsoft Visual Studio 8
[3] Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C++ 2005 SP1
Location: D:\Program Files\Microsoft Visual Studio 8
Are these correct [y]/n? y
Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2010a\mexopts.bat
From template: D:\Programs\MATLAB\R2010a\bin\win32\mexopts\msvc80opts.bat
Done . . .
**************************************************************************
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the new
API. You can find more information about this at:
http://www.mathworks.com/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9
Building with the -largeArrayDims option enables the new API.
**************************************************************************