sdo.requirements.SignalBound class
Package: sdo.requirements
Piecewise-linear amplitude bound
Description
Specify piecewise-linear upper or lower amplitude bounds on
a time-domain signal. You can then optimize the model response to
meet these bounds using sdo.optimize
.
You can include multiple linear edges, and extend to + or –inf
.
Construction
creates an sig_req
= sdo.requirements.SignalBoundsdo.requirements.SignalBound
object and assigns default
values to its properties.
uses additional options specified by one or more sig_req
=
sdo.requirements.SignalBound(Name,Value
)Name,Value
pair
arguments. Name
is a property name and Value
is
the corresponding value. Name
must appear inside single quotes
(''
). You can specify several name-value pair arguments in any
order as Name1,Value1,...,NameN,ValueN
.
Input Arguments
Name-Value ArgumentsSpecify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
Use Name,Value
arguments to specify properties of the
requirement object during object creation. For example, requirement
= sdo.requirements.SignalBound('Type','>=')
creates
an sdo.requirements.SignalBound
object and
specifies the Type
property as a lower bound.
Properties
|
Magnitude values for the piecewise-linear bound. Specify the start and end magnitude values for all edges in
the bound. The property must be a Use Default: |
|
Time values of the piecewise-linear bound. Specify the start and end times for all the edges in the piecewise-linear
bound. The property must be a Use Default: |
|
Requirement description, specified as a character vector. For
example, Default: |
|
Requirement name, specified as a character vector. Default: |
|
Extend bound in a negative or positive time direction. Specify whether the first and last edge of the bound extends
to Must be a Default: |
|
Time units of the requirement, specified as one of the following values:
Default: |
|
Bound type Specify whether the piecewise-linear requirement is an upper or lower bound, specified as one of the following values:
Default: |
Methods
evalRequirement | Evaluate piecewise-linear bound |
Examples
Construct a signal bound object and specify piecewise-linear bounds.
r = sdo.requirements.SignalBound; set(r,'BoundTimes', [0 10; 10 20],... 'BoundMagnitudes', [1.1 1.1; 1.01 1.01])
Alternatively, you can specify the bounds during construction:
r = sdo.requirements.SignalBound(... 'BoundTimes',[0 10; 10 20],... 'BoundMagnitudes',[1.1 1.1; 1.01 1.01]);
Alternatives
Use getbounds
to get the
bounds specified in a Check Custom Bounds block.