MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   如何从C调用MATLAB代码? (https://www.labfans.com/bbs/showthread.php?t=22805)

poster 2019-12-10 16:49

如何从C调用MATLAB代码?
 
我有一些[URL="https://stackoverflow.com/questions/1506243/how-to-plot-triangles-on-a-6x6-grid-in-matlab"]代码[/URL]可以在MATLAB中绘制三角形。

我需要能够以某种方式从生成这些点的C程序中执行此代码。

[B]那可能吗?怎么做到呢?[/B]

[B]只是一个想法:[/B]我可以以某种方式将MATLAB代码嵌入C中,以便可以在C编译器上进行编译吗?


回答:
Mathworks网站上有[URL="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"]完整的详细信息[/URL] ; [URL="http://fr.mathworks.com/videos/calling-matlab-from-c-code-68913.html"]演示视频[/URL] ,介绍了从C调用Matlab引擎,以及从[URL="http://www.mathworks.com/products/rtwembedded/"]Matlab到C编译器的过程[/URL] 。



[url=https://stackoverflow.com/questions/1513583]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 23:37

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.