Generating C Code from MATLAB Code

3 vues (au cours des 30 derniers jours)
Nour Sd
Nour Sd le 30 Sep 2017
Commenté : Rena Berman le 30 Oct 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 commentaire
Rena Berman
Rena Berman le 30 Oct 2017
(Answers Dev) Restored edit

Connectez-vous pour commenter.

Réponse acceptée

Marco
Marco le 30 Sep 2017
Modifié(e) : Walter Roberson le 30 Sep 2017
Hello Nour,
BR Marco

Plus de réponses (3)

Marco
Marco le 1 Oct 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

Marco
Marco le 1 Oct 2017
Modifié(e) : Walter Roberson le 1 Oct 2017

Marco
Marco le 2 Oct 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.

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by