Generating C Code from MATLAB Code

hello, i'm new in Matlab ;
I'm trying to use Matlab coder to generate my c code, I have some mistakes, I tried many times to fix it, but I can't find a solution, please help me to fix .thanks

 Respuesta aceptada

Marco
Marco el 30 de Sept. de 2017
Editada: Walter Roberson el 30 de Sept. de 2017

1 voto

Hello Nour,
BR Marco

Más respuestas (3)

Marco
Marco el 1 de Oct. de 2017

0 votos

Hello Nour, It is necessary to inizialize the variables. For example, I see that S is a matrix and you can initialize it as a matrix of all zeros elements: S = zeros(rows,columns).
In the same way you can do for the other variables.
BR Marco
Marco
Marco el 2 de Oct. de 2017

0 votos

Hello, I think that this error is due to the fact that in the main file (the file where you call your function) you don't pass the three inpu values that the function expects.

Categorías

Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 30 de Sept. de 2017

Comentada:

el 30 de Oct. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by