Can C program be converted to Matlab ?

 Respuesta aceptada

manoj saini
manoj saini el 23 de Feb. de 2013

0 votos

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

1 comentario

Walter Roberson
Walter Roberson el 23 de Feb. de 2013
That does not convert it to MATLAB, but it does make it possible for MATLAB to make use of the C code.

Iniciar sesión para comentar.

Más respuestas (1)

Jan
Jan el 24 de Feb. de 2013

0 votos

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 comentarios

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

Iniciar sesión para comentar.

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Preguntada:

el 23 de Feb. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by