如何在 Coder 支持的 Matlab 中使用 tcp/ip?

How can I use tcp/ip in Matlab that is supported by Coder?

我正在处理的一个项目使用了用 MatLab 编写的算法,需要将其转换为 C 以便在 RTOS 中使用。我们需要使用 TCP/IP,但是 Coder(将 MatLab 代码转换为 C 代码)不支持 MatLab 中的 tcpip 对象。有解决办法或方法吗?

您可以将网络 C 代码合并到 Matlab 代码中,然后使用编码器对其进行转换。

您可以使用 coder.ceval([function]) 或调用包含 C 代码的 MEX 文件。