全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
8262 7
2011-06-23
我安装的是2010b版,在安装过程的后期跳出一个消息框,说还需要再安装一些第三方编译器,但是又没有说这些编译器的名称,哪位朋友告诉我一下。
另外,我电脑上没有装任何编程软件,请问我装c编译器好,还是c++编译器好?还是都可以?
1. The following products require a supported compiler:  MATLAB Compiler 4.14 MATLAB Builder NE 3.2 MATLAB Builder JA 2.2 MATLAB Builder EX 1.3 Stateflow 7.6 Real-Time Workshop 7.6 xPC Target 4.4  
2. Simulink requires a C compiler for simulation acceleration, model reference, and Embedded MATLAB capabilities. It is recommended that you install a supported compiler on your machine.  
3. To accelerate computations with the following products, a supported compiler is required:  SimBiology 3.3 Fixed-Point Toolbox 3.2  
4. To configure Real-Time Windows Target you must type rtwintgt -setup in a MATLAB command window.  
5. After this installation is complete, you should continue with your configuration of the MATLAB Distributed Computing Server as outlined in the instructions from distconfig.  
6. You have installed xPC Target. Use the xPC Target Explorer GUI (type xpcexplr in the MATLAB Command Window) to correctly configure xPC Target with a valid compiler pathname. For further help, type doc xpcexplr.  
7. Run mbuild -setup from MATLAB before using MATLAB Compiler or builder products.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2011-6-24 00:23:20
1# toff123

以下提示,对于只用MATLAB来编写m代码或简单simulink仿真的同志们,可以不必理会。
简单的字面意思:

1. The following products require a supported compiler: MATLAB Compiler 4.15
MATLAB Builder NE 4.0
MATLAB Builder JA 2.2.2
MATLAB Builder EX 2.0
Stateflow 7.7
Simulink Coder 8.0
xPC Target 5.0
MATLAB Coder 2.0
以上这些工具需要MATLAB Compiler 4.15的支持,如果没装MATLAB Compiler 4.15,就不能用。

2. Simulink requires a C compiler for simulation acceleration, model reference, and MATLAB Function Block capabilities. It is recommended that you install a supported compiler on your machine.
如果要使用Simulink加速仿真、模型引用、MATLAB函数模块,需要安装一个C编译器。

3. To accelerate computations with the following products, a supported compiler is required: SimBiology 3.4 Fixed-Point Toolbox 3.3
同理

4. To configure Real-Time Windows Target you must type rtwintgt -setup in a MATLAB command window.
使用Real-Time Windows Target之前,使用命令rtwintgt -setup配置一下

5. After this installation is complete, you should continue with your configuration of the MATLAB Distributed Computing Server as outlined in the instructions obtained from www.mathworks.com/distconfig.
MATLAB分布式计算服务器,需要参考网址xxx继续配置

6. You have installed xPC Target. Use the xPC Target Explorer GUI (type xpcexplr in the MATLAB Command Window) to correctly configure xPC Target with a valid compiler pathname. For further help, type doc xpcexplr.
由于安装了xPC Target,用它之前,使用命令xpcexplr配置一下

7. Run mbuild -setup from MATLAB before using MATLAB Compiler or builder products.
使用MATLAB Compiler前,使用命令mbuild -setup配置一下
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-6-24 10:47:54
1# toff123
你列举的这些,其实已经装在MATLAB里的。尤其你说的是MATLAB R2010B 版本。

其中,你问是装C编译器,还是装C++?
MATLAB 内置了一个 LCC 编译器。这个是必须的。它本身自带C编译器。
当然,你可以装另外的编译器,装好后。用命令重新设置。
命令是: mbuild -setup
这样就可以重新选择默认的编译器,不设置,系统默认的是自带的 LCC

另一个问题:simulink 里的一个是先用c 编译过,一个是 fixed point (固定点问题)?
这是两个问题,
先回答你第一个,因为simulink 是一个复杂的,耗时的过程,对于matlab ,很多simulink 文件它运行时,会预先自动编译成.mex  文件。加快仿真速度。用的默认编译器依然是 LCC。这个你不用理会。
第二个问题,固定点的问题。这个涉及嵌入式系统,设计自动控制系统编程。论坛里大多都是做经济学模型。而不是做比如是电子产品的自动控制嵌入式系统等。
这样回复也只是给你一个了解的参考。

当装上 MATLAB R 2010b 时,你问题里列举的大多数应用都有的。只是有部分不能用。


一个是 支持网络的部分,这个需要网络编程语言。
一个是 EX 的插件,支持Excel 的编程。这个需要 VB 语言支持。这些需要你额外的装上编译器。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-6-24 11:00:33
我安装c++编译器取代c的可以吗?
我主要是用matlab搞统计、三维建模、金融建模,以及简单的电路芯片设计。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-6-24 12:06:12
哦。当然可以。
安装好后,你可以设置默认编译器。
比如要生成 mex 文件,你这样设置。
mex -setup

这个时候会提示你做选择。加入你自己装了一个 XX 版本的 C++ 编译器。
它会和 LCC 一起,别MATLAB 列举出来。前面有编号。
一般 [1] 是 LCC
        [2]  就是你自己装的编译器,你选择 2
然后,又会提示你的编译器的安装路径,它会自动找到的。你回车确认。

这样就改变默认编译器了,你可以用自己的 C++ 编译器。

呵呵,其实我自己也用另外的编译器,我用的是 Microsoft Viso Studio。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-6-24 12:08:40
统计建模,基本很多统计软件。MATLAB 自己工具箱里的函数都很强大了,也不怎么耗时。就是金融建模,有的运算让人头痛。
前不久论坛里一个朋友的程序跑一天一夜。那个真吓人。

比如 UCSD_GARCH ,或者另一个叫 mersuicci 的,名字拼写不对。他们的模型就有一部分是用 C语言写的。
以前可以直接生成 .dll 。现在高版本的MATLAB 不太喜欢.dll 文件。更喜欢 .mex64 文件。
你可以将一些部分写成C文件,然后编译成  .mex64 文件,可以加快运行速度。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群