Filter löschen
Filter löschen

Is possible to generate code with variable description instead its value?

1 Ansicht (letzte 30 Tage)
Vit Valek
Vit Valek am 15 Aug. 2018
Kommentiert: Vit Valek am 15 Aug. 2018
Hi,
I have created model which call C code using MATLAB Function. I want to generate code within Embedded Coder.
Is possible generate code which will use name of variable ( my_var) instead of value (in my model block Constant)?
I mean:
doubleIt(my_var);
Thanks for any advice!
Vit
  1 Kommentar
Vit Valek
Vit Valek am 15 Aug. 2018
SOLVED
In Matlab:
my_var = mpt.Parameter;
my_var.Value = 1.0;
For example set Storage class as Define (Custom) .

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange

Produkte


Version

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by