Simulink.lookuptable.Breakpoint
Configure breakpoint set data for lookup table object
Description
A Simulink.lookuptable.Breakpoint object
stores breakpoint set information for a lookup table. The object is stored in the
Breakpoints property of a Simulink.LookupTable object or Simulink.Breakpoint object.
You can use Simulink.LookupTable and Simulink.Breakpoint 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.Breakpoint objects in the
Breakpoints property of a Simulink.LookupTable object.
To share a breakpoint set between multiple lookup tables, use a Simulink.Breakpoint object to store and configure the breakpoint set
information. Use the object in a Prelookup block and create Simulink.LookupTable objects to use in Interpolation
Using Prelookup blocks.
Creation
When you create a Simulink.LookupTable object or
Simulink.Breakpoint object, a Simulink.lookuptable.Breakpoint object is created as the value of its
Breakpoints property.
To create more Simulink.lookuptable.Breakpoint 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.Breakpointobject 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.Breakpoint objects. Each embedded
object represents one breakpoint set.
For example, to create breakpoint sets for a Simulink.LookupTable object myLookupTable, access the
Breakpoints property by specifying vector indices and assign
value to one of its properties:
myLookupTable.Breakpoints(1).Value = [-1 1]; myLookupTable.Breakpoints(2).Value = [-2 -1 0 1 2]; myLookupTable.Breakpoints(3).Value = [-5 -3 0 3 5];
Properties
Version History
Introduced in R2016b