简体   繁体   English

导入功能Matlab Coder和C ++可执行文件

[英]import function Matlab Coder and C++ executable

Is there any work around for using the "import" function when coverting a matlab *.m file to a C++ executable? 将Matlab * .m文件覆盖到C ++可执行文件时,可以使用“导入”功能吗?

Matlab gives me this response: "Import statements are currently unsupported." Matlab给我这样的答复:“当前不支持导入语句。” and I just wanted to know if I was SOL or not. 我只是想知道我是否为SOL。

Thanks 谢谢

import makes Java classes available to Matlab programs. import使Java类可用于Matlab程序。 Since doing so makes it necessary to actually have a running Java Runtime Environment, I think it would be very costly to provide this functionality to generated C++ code – while it is always present when running the original m-file. 由于这样做实际上需要有一个运行中的Java运行时环境,因此我认为为生成的C ++代码提供此功能将非常昂贵-尽管在运行原始m文件时始终会提供此功能。 I therefore would interpret the error message to say exactly what it says: "unsupported". 因此,我将解释该错误消息以确切说明其内容:“不支持”。


To be more precise and give references: MATLAB Language Features Supported for C/C++ Code Generation explicitly says that Java is not supported, but Matlab classes are. 更准确地说,提供参考: C / C ++支持的MATLAB语言功能代码生成明确表示不支持Java,但支持Matlab类。 Moreover, import is not contained in the list of Functions Supported for C/C++ Code Generation . 而且, import不包含在C / C ++代码生成支持功能列表中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM