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

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 个评论

SOLVED
In Matlab:
my_var = mpt.Parameter;
my_var.Value = 1.0;
For example set Storage class as Define (Custom) .

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息

产品

版本

R2015b

提问:

2018-8-15

评论:

2018-8-15

Community Treasure Hunt

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

Start Hunting!

Translated by