Simulink.NumericType Property Dialog Box
Use a Simulink.AliasType object to set and share data types for
signal, state, and parameter data in a model. For examples and programmatic information,
see Simulink.NumericType.

- Data type mode
Data type of this numeric type. The options are listed in this table.
Option
Description
DoubleSame as the MATLAB®
doubletype.SingleSame as the MATLAB
singletype.BooleanSame as the MATLAB
booleantype.Fixed-point: unspecified scalingA fixed-point data type with unspecified scaling.
Fixed-point: binary point scalingA fixed-point data type with binary-point scaling.
Fixed-point: slope and bias scalingA fixed-point data type with slope and bias scaling.
Selecting a data type mode causes Simulink® software to enable controls on the dialog box that apply to the mode and to disable other controls that do not apply. Selecting a fixed-point data type mode can, depending on the other dialog box options that you select, cause the model to run only on systems that have a Fixed-Point Designer™ option installed.
- Data type override
Data type override setting for this numeric type. The options are listed in this table.
Option
Description
Inherit (default)
Data type override setting for the context in which this numeric type is used (block, signal, Stateflow® chart in Simulink) applies to this numeric type.
Off
Data type override setting does not affect this numeric type.
- Is alias
If you select this option for a workspace object of this type, Simulink software uses the name of the object as the data type for all objects that specify the object as its data type. Otherwise, Simulink software uses the data type mode of the data type as its name, or, if the data type mode is a fixed-point mode, Simulink software generates a name that encodes the type properties, using the encoding specified by Fixed-Point Designer.
- Data scope
Specifies whether the data type definition is imported from, or exported to, a header file during code generation. The possible values are listed in this table.
Value Action Auto(default)If no value is specified for Header file, export the type definition to .model_types.his the model name.model
If a value is specified for Header file, import the data type definition from the specified header file.ExportedExport the data type definition to a header file, which can be specified in the Header file field. If no value is specified for Header file, the header file name defaults to .type.his the data type name.typeImportedImport the data type definition from a header file, which can be specified in the Header file field. If no value is specified for Header file, the header file name defaults to .type.his the data type name.type- Header file
Name of a C header file from which a data type definition is imported, or to which a data type definition is exported, based on the value of Data scope. If this field is specified, the specified name is used during code generation for importing or exporting. If this field is empty, the value defaults to
if Data scope equalstype.hImportedorExported, or defaults toif Data scope equalsmodel_types.hAuto.By default, the generated
#includedirective uses the preprocessor delimiter"instead of<and>. To generate the directive#include <myTypes.h>, specify Header file as<myTypes.h>.- Description
Description of this data type. This field is intended for use in documenting this data type. Simulink software ignores it.
- Signedness
Specifies whether the data type is signed or unsigned, or inherits its signedness. Set the option to
Signed,Unsigned, orAuto. This option is enabled only for fixed-point data type modes as shown.
- Word length
Word length in bits of the fixed-point data type. This option is enabled only for fixed-point data type modes.
- Fraction length
Number of bits to the right of the binary point. This option is enabled only if the data type mode is
Fixed-point: binary point scaling.
- Slope
Slope for slope and bias scaling. This option is enabled only if the data type mode is
Fixed-point: slope and bias scaling.
- Bias
Bias for slope and bias scaling. This option is enabled only if the data type mode is
Fixed-point: slope and bias scaling. See the preceding figure.