Matlab Coder: Generate code for 'main' function for fixed-point code
Mostrar comentarios más antiguos
I am trying to generate fixed-point C code for a Matlab program using Matlab Coder and the Fixed-Point Toolbox. Using the Matlab Coder I was able to generate the C code under the setting: static library on the host computer. I see that the generated code also contains a dummy main function which invokes the function. This would be sufficient in the general case but not when using the Fixed-Point Toolbox, because I also require code to convert my input arguments to fixed-point, which is non-trivial. This task requires knowing the fraction length of each input argument and the quantization code to convert the float variable to fixed written in C.
Can anyone tell me how to generate C code for the main script which invokes the Matlab function?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Fixed-Point Conversion 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!