MATLAB Answers

Pooja
0

Can C program be converted to Matlab ?

Pooja
さんによって質問されました 2013 年 2 月 23 日
Can C program be converted to Matlab ?

  0 件のコメント

サインイン to comment.

2 件の回答

回答者: manoj saini 2013 年 2 月 23 日
 採用された回答

ya using MEX file.....we can convert it into MATLAB

  1 件のコメント

Walter Roberson
2013 年 2 月 23 日
That does not convert it to MATLAB, but it does make it possible for MATLAB to make use of the C code.

サインイン to comment.


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 件のコメント

Walter Roberson
2013 年 2 月 24 日
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.
Pooja
2013 年 2 月 24 日
C programs logic could be used for matlab programs right?
Walter Roberson
2013 年 2 月 24 日
Translating pointers would be tricky, but basic concepts such as "for" loops are the same in most programing languages.

サインイン to comment.



Translated by