Simulink.lookuptable.Table class
Package:Simulink.lookuptable
Superclasses:
Configure table data for lookup table object
Description
An object of theSimulink.lookuptable.Table
class stores table information for a lookup table. The object resides in theTable
财产的Simulink.LookupTable
object. You can use theSimulink.LookupTable
object to store and configure a lookup table for ASAP2 and AUTOSAR code generation.
Construction
When you create aSimulink.LookupTable
object, aSimulink.lookuptable.Table
对象出现的值Table
property.
Properties
DataType
—Data type of table data elements
'auto'
(default) |character vector
Data type of the table data elements, specified as a character vector. You can explicitly specify an integer data type, a floating-point data type, a fixed-point data type, or a data type expression such as the name of aSimulink.AliasType
object.
The default value,'auto'
, means that the table data acquire a data type from the value that you specify in theValue
property. If you use an untyped expression such as[1 2 3]
to setValue
, the table data use the data typedouble
. If you specify a typed expression such assingle([1 2 3])
or anfi
object, the table data use the data type specified by the expression or object.
For more information about data types in Simulink®, seeData Types Supported by Simulink. To decide how to control the data types of table and breakpoint data inSimulink.LookupTable
andSimulink.Breakpoint
objects, seeControl Data Types of Lookup Table Objects(金宝app仿真软件编码器)。
Example:'int16'
Example:'myTypeAlias'
Data Types:char
Description
—Description of table data
''
(default) |character vector
Description of the table data, specified as a character vector.
Example:'This lookup table describes the action of a pump.'
Data Types:char
Dimensions
—Dimension lengths of table data
[0 0]
(default) |numeric vector
Dimension lengths of the table data, returned as a numeric vector or specified as a character vector.
To use symbolic dimensions, specify a character vector.
FieldName
—Name of a structure field in the generated code
'Table'
(default) |character vector
Name of a structure field in the generated code, specified as a character vector. This field stores the table data if you configure theSimulink.LookupTable
object to appear in the generated code as a structure.
Example:'MyPumpTable'
Data Types:char
Max
—Maximum value of table data elements
[]
(default) |numericdouble
value
Maximum value of the elements of the table data, specified as a numeric, real value of the data typedouble
.
Example:17.23
Data Types:double
Min
—Minimum value of table data elements
[]
(default) |numericdouble
value
Minimum value of the elements of the table data, specified as a numeric, real value of the data typedouble
.
Example:-52.6
Data Types:double
Unit
—Physical unit of table elements
''
(default) |character vector
Physical unit of the elements of the table data, specified as a character vector.
Example:'degC'
Data Types:char
Value
—Table data
[]
(default) |numeric vector or multidimensional array
The table data, specified as a numeric vector or multidimensional array with at least two elements. To control the data type of the table data, use theDataType
property of theSimulink.lookuptable.Table
object.
When you setDataType
to'auto'
, to set theValue
property, use a typed expression such assingle([1 2 3])
or use thefi
constructor to embed anfi
object.
Example:[10 20 30; 40 50 60]
Data Types:single
|double
|int8
|int16
|int32
|uint8
|uint16
|uint32
|fi
Copy Semantics
Value. To learn how value classes affect copy operations, seeCopying Objects(MATLAB)。
See Also
Introduced in R2016b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina(Español)
- Canada(English)
- United States(English)
Europe
- Belgium(English)
- Denmark(English)
- Deutschland(Deutsch)
- España(Español)
- Finland(English)
- France(Français)
- Ireland(English)
- Italia(Italiano)
- Luxembourg(English)
- Netherlands(English)
- Norway(English)
- Österreich(Deutsch)
- Portugal(English)
- Sweden(English)
- Switzerland
- United Kingdom(English)