将Matlab转换为C ++ [英] Converting Matlab to C++

查看:130
本文介绍了将Matlab转换为C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将一些MATLAB代码转换为C ++.我正在使用Visual Studio 2010,并已安装MATLAB编译器.我想知道如何去做.

I need to convert some MATLAB code to C++. I am using Visual Studio 2010 and have MATLAB compiler installed. I am wondering how do I go about doing this.

当我发布项目时,最终用户是否必须通过MATLAB安装任何内容? (事实并非如此)

Also when I publish my project will the end user have to install anything by MATLAB? (this cannot be the case)

推荐答案

您可以编译Matlab脚本转换为独立的可执行文件,但我不熟悉将Matlab代码转换为Visual C ++代码的Matlab工具.您可以使用 Simulink Coder将Matlab代码转换为C或C ++ (以前称为Real-Time Workshop),可从Mathworks单独购买.

You can compile Matlab scripts into standalone executables, but I'm not familiar with a Matlab tool to convert Matlab code to Visual C++ code. You can convert Matlab code to C or C++ using Simulink Coder (formerly Real-Time Workshop), which is available from Mathworks as a separate product.

要运行独立可执行文件,用户将必须安装Matlab编译器运行时.从 Matlab编译器网页:

To run the standalone executable, the user will have to install the Matlab Compiler Runtime. From the Matlab Compiler web page:

使用MATLAB Compiler产品创建的可执行文件和库使用称为MATLAB Compiler Runtime(MCR)的运行时引擎. MCR随MATLAB编译器一起提供,可随您的应用程序一起分发,并且可以免费使用.

Executables and libraries created with the MATLAB Compiler product use a runtime engine called the MATLAB Compiler Runtime (MCR). The MCR is provided with MATLAB Compiler for distribution with your application and can be deployed royalty-free.

这篇关于将Matlab转换为C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆