Can C program be converted to Matlab ?

 采纳的回答

manoj saini
manoj saini 2013-2-23
ya using MEX file.....we can convert it into MATLAB

1 个评论

That does not convert it to MATLAB, but it does make it possible for MATLAB to make use of the C code.

请先登录,再进行评论。

更多回答(1 个)

Jan
Jan 2013-2-24
Yes, both languages have the same power.
A manual conversion can be a big piece of work or very easy. Do you mean an automatic conversion?

3 个评论

There are some corners of C that have no MATLAB equivalent.
I am thinking in particular that C defines the behavior of seeking on files to include flushing the output, but MATLAB does not define that facility anywhere.
C programs logic could be used for matlab programs right?
Translating pointers would be tricky, but basic concepts such as "for" loops are the same in most programing languages.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by