MATLAB Answers

Pooja
0

Can C program be converted to Matlab ?

Asked by Pooja
on 23 Feb 2013
Can C program be converted to Matlab ?

  0 Comments

Sign in to comment.

2 Answers

Answer by manoj saini on 23 Feb 2013
 Accepted Answer

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

  1 Comment

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

Sign in to comment.


Jan
Answer by Jan
on 24 Feb 2013

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 Comments

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
on 24 Feb 2013
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.

Sign in to comment.