matlab2013a编译器,Matlab2013a中simulink仿真无法启动C编译器的解决方法

MATLAB2013a在含有Stateflow图表或MATLAB Function块的Simulink模型更新时,会遇到无法定位C编译器的问题。通过官方提供的临时解决方案,包括下载特定补丁并覆盖MATLAB安装文件,可以解决该问题。此问题在R2013b及更高版本已修复。
摘要由CSDN通过智能技术生成

错误信息:

"Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks.

Use 'mex -setup' to select a supported C-compiler."

使用mex -setup 选择VS2012之后还是出错,使用低版本2010a或者高版本2014b时可以运行。

参考Mathworks的官方支持,发现bug及解决方案如下:

Summary

Stateflow charts and MATLAB Function blocks do not work with Microsoft Visual Studio (MSVC) 2012.

Description

When you select Microsoft Visual Studio (MSVC) 2012 as your MEX compiler, you get an error if you try to update a Simulink model that contains Stateflow charts or MATLAB Function blocks. Here is the error message:

"Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks.

Use 'mex -setup' to select a supported C-compiler."

Workaround

Installation instructions

Log in to an account with appropriate permissions to overwrit

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值