coder.dictionary.remove
Remove Embedded Coder Dictionary from model or Simulink data dictionary
Syntax
Description
remove(
removes Embedded
Coder Dictionary definitions from your model or Simulink® data dictionary identified by sourceName
)sourceName
. When you
remove the Embedded Coder Dictionary from a model, you remove custom definitions and
definitions from packages that you have loaded. The model still contains the local
dictionary with definitions from the SimulinkBuiltIn
package.
When you remove the Embedded Coder Dictionary from a model that does not have an
attached Simulink data dictionary with definitions, the remaining local dictionary
contains definitions from the Simulink package. When you remove the Embedded Coder Dictionary from a
Simulink data dictionary, you remove the entire Embedded Coder Dictionary,
including its packages and definitions.
Use this function to:
Remove Embedded Coder Dictionary definitions from a model.
In a hierarchy of referenced Simulink data dictionaries, remove the Embedded Coder Dictionary from a data dictionary. In a hierarchy of referenced dictionaries, only one dictionary can store an Embedded Coder Dictionary.
To migrate code generation definitions from one source to another (for example,
from a model file to a Simulink data dictionary), consider using coder.dictionary.move
.
Examples
Input Arguments
Tips
To use coder.dictionary.remove
on a data dictionary that
references other data dictionaries, you must:
Temporarily remove references to dictionaries that also contain code generation definitions.
Use
coder.dictionary.remove
on the target dictionary.Restore the dictionary references that you removed.