Generating C Code from MATLAB Code

2 visualizzazioni (ultimi 30 giorni)
Nour Sd
Nour Sd il 30 Set 2017
Commentato: Rena Berman il 30 Ott 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

Risposta accettata

Marco
Marco il 30 Set 2017
Modificato: Walter Roberson il 30 Set 2017
Hello Nour,
BR Marco

Più risposte (3)

Marco
Marco il 1 Ott 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 il 1 Ott 2017
Modificato: Walter Roberson il 1 Ott 2017

Marco
Marco il 2 Ott 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.

Categorie

Scopri di più su MATLAB Coder in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by