You can remove the zero-initialization code for internal data in the following ways:
- Open the Configuration Parameters dialog box. On the Optimization pane, select “Remove internal data zero initialization”
- Use the following command prompt to set the model parameter “ZeroInternalMemoryAtStartup” to “off”
set_param(model, 'ZeroInternalMemoryAtStartup', 'off');
For more information regarding this please use the following command to view the documentation-
doc Remove Zero Initialization Code