In order to prevent Real-Time Workshop from eliminating parameter values equal to zero for the Discrete State-Space block, you must first declare those parameters to be tunable. You can do this from the "Optimization" tab of the "Configuration Parameters" dialog box:
1. Select the check box labeled "Inline parameters."
2. Click the adjacent button labeled "Configure."
3. Select all appropriate parameters in the left pane, and then click the "Add to table" button to add them "Global (tunable) parameters" list in the right pane.
4. Rebuild your code. Note that all zero entries should be preserved in your model_data.c file.
Best Answer