當前位置:首頁 » 編程軟體 » matlab在線編譯器

matlab在線編譯器

發布時間: 2022-01-30 06:08:52

㈠ 安裝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.
**************************************************************************

熱點內容
排列概率演算法 發布:2025-03-14 16:26:35 瀏覽:371
caffepython使用 發布:2025-03-14 16:13:17 瀏覽:231
小明加密訪問 發布:2025-03-14 16:12:36 瀏覽:861
mysql怎麼導出資料庫 發布:2025-03-14 15:47:52 瀏覽:988
錄制的視頻怎麼保存到存儲卡 發布:2025-03-14 15:46:19 瀏覽:794
curl源碼編譯 發布:2025-03-14 15:43:55 瀏覽:354
天龍八部無憂腳本 發布:2025-03-14 15:34:46 瀏覽:25
jdk764forlinux 發布:2025-03-14 15:34:40 瀏覽:361
安卓車機怎麼使用實景導航 發布:2025-03-14 15:33:15 瀏覽:907
變數的存儲分配 發布:2025-03-14 15:01:12 瀏覽:173