Simulink.lookuptable.Evenspacing Class
Namespace: Simulink.lookuptable
Superclasses:
Configure even spacing set data for lookup table object
Description
An object of the Simulink.lookuptable.Evenspacing
class stores event spacing set information for a lookup table. The object resides in the
Evenspacing
property of a Simulink.LookupTable
object.
You can use Simulink.LookupTable
objects to store
and configure a lookup table for ASAP2 and AUTOSAR code generation.
To represent multiple breakpoint sets for a multidimensional lookup table, store a
vector of Simulink.lookuptable.Evenspacing
objects in the
Evenspacing
property of a Simulink.LookupTable
object.
Construction
When you create a Simulink.LookupTable
object and
set BreakpointSpecification
to 'Even
spacing'
, a Simulink.lookuptable.Evenspacing
object appears as the value of the
Breakpoints
property.
To create more Simulink.lookuptable.Evenspacing
objects for a Simulink.LookupTable
object, use this
technique:
Access the Breakpoints
property by specifying a vector
index.
To create a Simulink.lookuptable.Evenspacing
object,
you can set the value of any of the object properties. The Simulink.LookupTable
object creates the Simulink.lookuptable.Evenspacing
object with default property values, and
sets the property that you specified.
The value of the Breakpoints
property is an array of Simulink.lookuptable.Evenspacing
objects. Each embedded
object represents one breakpoint set.
For example, suppose that you create a Simulink.LookupTable
object named myLUTObj
. To create
more breakpoint sets, access the Breakpoints
property by specifying
scalar indices for FirstPoint
and Spacing
properties. To create more even spacing breakpoint sets, update the object with this
pair of properties:
LUTObj.Breakpoints(1).FirstPoint=-1; LUTObj.Breakpoints(1).Spacing=2; LUTObj.Breakpoints(1).FirstPoint=-2; LUTObj.Breakpoints(1).Spacing=1; LUTObj.Breakpoints(1).FirstPoint=-5; LUTObj.Breakpoints(1).Spacing=2;
The object myLUTObj
creates additional Simulink.lookuptable.Evenspacing
objects and sets the
FirstPoint
and Spacing
properties of each
object. LUTObj
now stores information for three breakpoint
sets.
Properties
Copy Semantics
Value. To learn how value classes affect copy operations, see Copying Objects.
Version History
Introduced in R2017b