问题描述
我有一些$c$c绘出在MATLAB三角形。
I have some code that plots triangles in MATLAB.
我需要能够以某种方式从中产生这些点我的C程序执行这个code。
I need to be able to somehow execute this code from my C program which generates these points.
这可能吗?如何能做到?
只是一个想法:
我能以某种方式嵌入MATLAB code在C,以便它可以在C编译器来编译?
Just a thought:Can I somehow embed MATLAB code in C, so that it can compile on a C compiler?
推荐答案
Mathworks公司网站有<一个href=\"http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab_external/f38569.html&http://www.mathworks.com/access/helpdesk/help/techdoc/helptoc.html\"相对=nofollow>全面详细信息;一个从C Matlab引擎,也是。
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 code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!