Simulink.lookuptable.Breakpoint class
Package:Simulink.lookuptable
Superclasses:
Configure breakpoint set data for lookup table object
Description
An object of theSimulink.lookuptable.Breakpoint
class stores breakpoint set information for a lookup table. The object resides in theBreakpoints
的属性aSimulink.LookupTable
object orSimulink.Breakpoint
object.
You can useSimulink.LookupTable
andSimulink.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 ofSimulink.lookuptable.Breakpoint
objects in theBreakpoints
的属性aSimulink.LookupTable
object.
To share a breakpoint set between multiple lookup tables, use aSimulink.Breakpoint
object to store and configure the breakpoint set information. Use the object in aPrelookupblock and createSimulink.LookupTable
objects to use inInterpolation Using Prelookupblocks.
Construction
When you create aSimulink.LookupTable
object orSimulink.Breakpoint
object, aSimulink.lookuptable.Breakpoint
object appears as the value of theBreakpoints
property.
To create moreSimulink.lookuptable.Breakpoint
objects for aSimulink.LookupTable
object, use this technique:
Access theBreakpoints
property by specifying a vector index.
To create aSimulink.lookuptable.Breakpoint
object, you can set the value of any of the object properties. TheSimulink.LookupTable
object creates theSimulink.lookuptable.Breakpoint
object with default property values, and sets the property that you specified.
The value of theBreakpoints
property is an array ofSimulink.lookuptable.Breakpoint
objects. Each embedded object represents one breakpoint set.
For example, suppose that you create aSimulink.LookupTable
object namedLUTObj
. To create more breakpoint sets, access theBreakpoints
属性指定向量指标:
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 objectLUTObj
creates additionalSimulink.lookuptable.Breakpoint
objects and sets theValue
的属性each object.LUTObj
now stores information for three breakpoint sets.
Properties
Copy Semantics
Value. To learn how value classes affect copy operations, seeCopying Objects(MATLAB).