Simulink.lookuptable.Evenspacing
Configure evenly spaced breakpoint set for lookup table object
Description
A Simulink.lookuptable.Evenspacing object
stores evenly spaced breakpoint set information for a lookup table. The object is stored
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 evenly spaced breakpoint sets for a multidimensional lookup
table, store a vector of Simulink.lookuptable.Evenspacing objects in
the Evenspacing property of a Simulink.LookupTable object.
Creation
When you create a Simulink.LookupTable object and set
BreakpointSpecification to "Even spacing", a
Simulink.lookuptable.Evenspacing object is created
as the value of its Breakpoints property.
To create more Simulink.lookuptable.Evenspacing
objects for a Simulink.LookupTable object, use this
technique:
Access the
Breakpointsproperty by specifying a vector index.Set the value of any of the object properties. A
Simulink.lookuptable.Evenspacingobject is created with the property value you specified and default values for all other properties.
The value of the Breakpoints property is an array of Simulink.lookuptable.Evenspacing objects. Each embedded
object represents one evenly spaced breakpoint set.
For example, to create breakpoint sets for a Simulink.LookupTable object myLookupTable, access the
Breakpoints property by specifying vector indices and then set
the FirstPoint and Spacing properties.
myLookupTable.Breakpoints(1).FirstPoint = -1; myLookupTable.Breakpoints(1).Spacing = 2; myLookupTable.Breakpoints(2).FirstPoint = -2; myLookupTable.Breakpoints(2).Spacing = 1; myLookupTable.Breakpoints(3).FirstPoint = -5; myLookupTable.Breakpoints(3).Spacing = 2;
Properties
Version History
Introduced in R2017b