coverting to c code
Mostrar comentarios más antiguos
i’m converting Matlab code to static c code, i found two ways to convert the code. Both are producing diff code, I just want to know which the correct way of code conversion. following the two commends ,
codegen -c pca
coder -new pca.prj
thanks
Rajeshkumar.c
Respuestas (3)
Mike Hosea
el 13 de Feb. de 2012
0 votos
CODEGEN is the command-line way, CODER is the graphical user interface. It's the same technology "under the hood". I expect "codegen" and "coder" to generate the same code if you are using all the same options.
1 comentario
Rajesh
el 15 de Feb. de 2012
Titus Edelhofer
el 15 de Feb. de 2012
Hi Rajesh,
just to confirm: I guess you invoke coder by
coder -build pca.prj
instead of "-new"? I just gave it another try with a larger project, and apart from the new build date, the generated codes were identical ...
What kind of differences in the code do you see?
Titus
Rajesh
el 16 de Feb. de 2012
0 votos
Categorías
Más información sobre Automated Fixed-Point Conversion in MATLAB en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!