Generating C Code from MATLAB Code
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nour Sd
el 30 de Sept. de 2017
Comentada: Rena Berman
el 30 de Oct. de 2017
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
1 comentario
Respuesta aceptada
Marco
el 30 de Sept. de 2017
Editada: Walter Roberson
el 30 de Sept. de 2017
Hello Nour,
you can find a solution for your problem at this link: https://it.mathworks.com/matlabcentral/answers/242833-generate-c-code-for-load-function-using-matlab-coder
BR Marco
0 comentarios
Más respuestas (3)
Marco
el 1 de Oct. de 2017
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
0 comentarios
Marco
el 1 de Oct. de 2017
Editada: Walter Roberson
el 1 de Oct. de 2017
You can see this link (Walter's answer): https://it.mathworks.com/matlabcentral/answers/269085-error-undefined-function-or-method-min-for-input-arguments-of-type-struct
0 comentarios
Marco
el 2 de Oct. de 2017
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.
0 comentarios
Ver también
Categorías
Más información sobre MATLAB Coder en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!