Simulink.lookuptable.Breakpoint Class
Namespace: Simulink.lookuptable
Superclasses:
Configure breakpoint set data for lookup table object
Description
An object of the Simulink.lookuptable.Breakpoint
class
stores breakpoint set information for a lookup table. The object resides
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.
Construction
When you create a Simulink.LookupTable
object
or Simulink.Breakpoint
object, a Simulink.lookuptable.Breakpoint
object
appears as the value of the Breakpoints
property.
To create more Simulink.lookuptable.Breakpoint
objects for a
Simulink.LookupTable
object, use this
technique:
Access the Breakpoints
property by specifying a vector
index.
To create a Simulink.lookuptable.Breakpoint
object,
you can set the value of any of the object properties. The Simulink.LookupTable
object creates the Simulink.lookuptable.Breakpoint
object with default property values, and
sets the property that you specified.
The value of the Breakpoints
property is an array of Simulink.lookuptable.Breakpoint
objects. Each embedded
object represents one breakpoint set.
For example, suppose that you create a Simulink.LookupTable
object
named LUTObj
. To create more breakpoint sets, access
the Breakpoints
property by specifying vector
indices:
LUTObj.Breakpoints(1).Value = [-1 1]; LUTObj.Breakpoints(2).Value = [-2 -1 0 1 2]; LUTObj.Breakpoints(3).Value = [-5 -3 0 3 5];
The object LUTObj
creates additional Simulink.lookuptable.Breakpoint
objects
and sets the Value
property 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 R2016b