如何在MS Visual C ++中执行Matlab函数? [英] How to execute a Matlab function in MS Visual C++?

查看:97
本文介绍了如何在MS Visual C ++中执行Matlab函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个独立的函数,一个在MS Visual C ++中,另一个在Matlab中.如何在MS VISUAL中执行Matlab文件?是否有Windows函数来加载.m文件并直接执行?

I have 2 separate functions which one is in MS visual C++ and another is in Matlab. How do I execute the Matlab file in MS VISUAL? Is there a windows function to load the .m file and execute it straightly?

推荐答案

在C ++中运行Matlab代码的两种方法:

  1. 直接调用MATLAB Engine.

    目标计算机需要安装MATLAB.查看从C和C ++应用程序以获取更多信息和示例.

  1. Call MATLAB Engine directly.

    The target machine needs to have the MATLAB installed. Check out Call MATLAB Functions from C and C++ Applications for more info and examples.

目标计算机需要具有MATLAB编译器运行时.在此处中进行操作(详细步骤和示例).

The target machine needs to have the MATLAB compiler runtime. Check out here on how to do this (with detail steps and example).

这篇关于如何在MS Visual C ++中执行Matlab函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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