如何从 C 调用 MATLAB 代码? [英] How to call MATLAB code from C?
本文介绍了如何从 C 调用 MATLAB 代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些代码在 MATLAB 中绘制三角形.
I have some code that plots triangles in MATLAB.
我需要能够以某种方式从生成这些点的 C 程序中执行此代码.
I need to be able to somehow execute this code from my C program which generates these points.
这可能吗?怎么做?
只是一个想法:我可以以某种方式将 MATLAB 代码嵌入 C 中,以便它可以在 C 编译器上编译吗?
Just a thought: Can I somehow embed MATLAB code in C, so that it can compile on a C compiler?
推荐答案
Mathworks 站点有 完整详情;调用 Matlab 引擎的演示视频从 C,以及 Matlab 到 C 编译器.
The Mathworks site has full details; a demo video of calling the Matlab engine from C, and also the Matlab to C Compiler.
这篇关于如何从 C 调用 MATLAB 代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文