필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
Vit Valek
Vit Valek 2018년 8월 15일
댓글: Vit Valek 2018년 8월 15일
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
Vit Valek
Vit Valek 2018년 8월 15일
SOLVED
In Matlab:
my_var = mpt.Parameter;
my_var.Value = 1.0;
For example set Storage class as Define (Custom) .

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by