Can C program be converted to Matlab ?

 Réponse acceptée

manoj saini
manoj saini le 23 Fév 2013

0 votes

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

1 commentaire

Walter Roberson
Walter Roberson le 23 Fév 2013
That does not convert it to MATLAB, but it does make it possible for MATLAB to make use of the C code.

Connectez-vous pour commenter.

Plus de réponses (1)

Jan
Jan le 24 Fév 2013

0 votes

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 commentaires

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by