简体   繁体   English

如何将C代码转换为Matlab

[英]How to convert c code to matlab

I have ac code about 1200 lines long and i want to convert it into matlab. 我有大约1200行长的ac代码,我想将其转换为matlab。 is there any software or website where i can do it. 有没有我可以做的软件或网站。

You could also call the C code from Matlab, which might be easier and the program will certainly run faster. 您还可以从Matlab调用C代码,这可能会更容易,并且程序运行肯定会更快。 if this is an option for you, check out the Matlab documentation for creating mex-files. 如果这是您的选择,请查阅Matlab文档以创建mex文件。

Not that I know of (programming language translation is a harder tasks that you might think). 我所不知道的(编程语言翻译是您可能认为较难的任务)。 But Matlab syntax should be friendly enough to a C programmer. 但是Matlab语法对C程序员应该足够友好。

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

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