Can we replace parameter value with parameter name while generating C code from model?

Is it possible to bring 'constant name' instead of 'constant value' while generating C code from simulink model?
e.g. Suppose A = 429 and B = 459
so generated code should be like
if (rtb_Switch <= A ) {
EV_B.Saturation_g = rtb_Switch;
}
else {
EV_B.Saturation_g = B;
}
Constant value should be defined either in same code file or different parameter file.

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Products

Release

R2016b

Asked:

on 21 Mar 2023

Answered:

on 22 Mar 2023

Community Treasure Hunt

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

Start Hunting!