matlab(R2010a)找不到vs2010的c++编译器,网上有很多解决的办法,但是大部分都很复杂,并且不一定好用,这里是matlab官方给出的解决方法,非常好用,很简便。

How can I use Microsoft Visual C++ 2010 to create MEX files with MATLAB 7.10 (R2010a)?

Date Last Modified: Friday, March 30, 2012

Solution ID:

1-D5W493

Product:

Reported in Release:

R2010a

Platform:

Windows

Operating System:

Windows Any

Subject:

How can I use Microsoft Visual C++ 2010 to create MEX files with MATLAB 7.10 (R2010a)?

Problem Description:

I would like to use Visual C++ 2010 to create MEX files for use in MATLAB.

Solution:

The Microsoft Visual C++ 2010 compiler is not supported on the released version of MATLAB 7.10 (R2010a), but support can be added by installing a patch. To install the patch:

1. Download the patch attached to this Solution. The patch includes files needed to support these combinations of MATLAB and Visual C++ 2010:

• Visual C++ 2010 Professional and 64-bit MATLAB 7.10 (R2010a)

• Visual C++ 2010 Professional and 32-bit MATLAB 7.10 (R2010a)

• Visual C++ 2010 Express (Windows SDK 7.1 also required) and 64-bit MATLAB 7.10 (R2010a)

• Visual C++ 2010 Express and 32-bit MATLAB 7.10 (R2010a)

2. Launch MATLAB 7.10 (R2010a). If running on Windows Vista or Windows 7 run as administrator by right-clicking on the MATLAB shortcut and choosing "Run As Administrator". This permits modification of files in the MATLAB installation path.

3. Confirm that you are running MATLAB 7.10 (R2010a). You can check this using the About box available at Help->About MATLAB.

4. Unzip the contents of the patch into your MATLAB installation using the following command on the MATLAB command window.

unzip( path_to_zip_file, matlabroot);

This command will automatically unzipped the files in the correct folder and you do not have to worry about placing them in correct folder.

5. Set up MEX to use Visual C++ 2010 with the command:

mex –setupVisual C++ 2010 should now be among the listed options.

Note that this patch will only work with MATLAB 7.10 (R2010a). Using this patch with any version of MATLAB is not supported.

Other MathWorks products such as Real-Time Workshop do not support Visual C++ 2010.

Refer to http://www.mathworks.com/support/compilers/R2010a/index.html for up-to-date information concerning supported compilers.

Related Documents/Files:

matlab vs2010编译器xml,matlab(R2010a)找不到vs2010的c++编译器相关推荐

  1. matlab vs2010编译器xml,如何在MATLAB R2010a 中使用Visual C++ 2010编译器

    1.安装补丁VS2010MEXSupport.zip 参考http://www.mathworks.cn/support/solutions/en/data/1-D5W493/index.html?s ...

  2. matlab compiler 与matlab coder 区别,MATLAB编译器与MATLAB编码器

    MATLAB编译器将您的MATLAB代码(保留为MATLAB .m代码)进行encryption和归档,并将其打包为一个精简的可执行文件(.exe或.dll)包装器. 这是随MATLAB编译器运行时( ...

  3. vc编译 matlab,精通VC与MATLAB联合编程——编译器的使用

    图1 图2 读者根据MATLAB安装实际情况输入头文件和库文件的路径. 3.在MATLAB打开文本编辑器(File->New->M-file)写一个简单的m函数: function y=h ...

  4. Matlab2022a安装MinGW64编译器把matlab函数转换为c/c++库函数

    Matlab2022a安装MinGW64编译器把matlab函数转换为c/c++库函数 最近在项目中,想把部分matlab中的算法函数转换为Qt下调用的C++函数,花了一天时间,配置成功,现把部分过程 ...

  5. matlab的combuilder系列-matlab下做com组件 zzfrom SMTH bbs

    matlab的combuilder系列-matlab下做com组件 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com ...

  6. matlAB gui 变成c,matlab改变GUI和figure左上角图标的方法,并生成exe文件

    1. GUI左上角图标的更改,假设GUI的Tag为figure1,在其OpeningFcn里添加 h = handles.figure1; %返回其句柄 newIcon = javax.swing.I ...

  7. matlab调用opencv库,matlab调用opencv库

    matlab中有许多图像处理的函数简单方便,比如矩阵x 求垂直积分 直接sum(x) 就可以了.不知道OPENCV里面有没有类似的功能,反正我是没找到.就准备用matlab调用OPENCV里面的函数. ...

  8. matlab veristand,amesim Veristand matlab

    新手学习AMESim 做变速器的仿真 发帖就当写笔记了 问题:Veristand 无法识别amesim使用vs2010编译出的dll文件? 解决方案:option中subplatform勾选Micro ...

  9. matlab的mex安装,matlab安装使用mex

    gunmex 在 matlab 中的配置(WinGW 和 cygwin) 在 Window xp/7 下使用 Linux 的 C/C++代码,编译成 DLL 供 Matlab 混合编程使用,目前有两个 ...

最新文章

  1. 华为计算平台MDC810发布量产
  2. 赠书 | 新手指南——如何通过HuggingFace Transformer整合表格数据
  3. 新手学测试----Unit Test(单元测试)
  4. 计算机安装了打印驱动无法打印,安装打印机的时候为什么电脑无法正常识别打印机?...
  5. ZYAR20A 亚克力2驱 蓝牙 298寻迹避障机器人 —— 小车红外避障实验(带后退掉头避障)
  6. 桥梁模式和适配器模式的区别
  7. 前端学习(205):animation动画库
  8. 《哈里波特:魔法觉醒》被指侮辱女性玩家?官方回应:动画BUG
  9. php 获取路由器mac地址,php如何获取网卡MAC地址(支持WIN与LINUX系统)
  10. Windows7多合一镜像制作
  11. VDN For PB Web实现消息推送
  12. 又出新玩法?微软公式编辑器系列漏洞新利用方式
  13. 在excel 同时冻结行和列
  14. 邮件监控云上脚本执行进度
  15. 【JavaScript联系练习】实现一个打点计时器
  16. .NET MAUI 性能提升
  17. 职场社交沟通必读图书排行榜
  18. 利用callKit实现电话防骚扰
  19. JavaScript的对象、属性与方法
  20. Catalan数的分析和应用

热门文章

  1. java对mysql的简单操作——增删改查的总结
  2. linux 驱动线程与进程,Linux内核学习之二-进程与线程
  3. 01屏幕增强 sap_SAP (MM01 MM02 MM03)屏幕增强
  4. 定时任务调度框架实现总结
  5. 【Java每日一题】20170302
  6. sublime的一些快捷键
  7. 简易调用及实例化控制器
  8. 第1章 ASP.NET 3.5与开发工具
  9. Windows Firewall/Internet Connection Sharing (ICS) 无法启动解决办法
  10. lxml读取本地html文件,如何使用Python和lxml来解析本地html文件?