Quantcast

Documentation Center

  • Trial Software
  • Product Updates

evalRequirement

Class: sdo.requirements.SignalBound
Package: sdo.requirements

Evaluate piecewise-linear bound

Syntax

c = evalRequirement(req,sig)

Description

c = evalRequirement(req,sig) evaluate whether a signal satisfies the specified piecewise-linear bounds.

Input Arguments

req

sdo.requirements.SignalBound object.

sig

MATLAB® timeseries object or nxm array, where the 1st column is time and subsequent columns are signal values.

Output Arguments

c

Column vector indicating the maximum signed distance of the signal to each edge. Negative values indicate that the bound edge is satisfied and positive values indicate that the bound edge is violated.

Matrix if multi-channeled signal.

Examples

Evaluate piecewise-linear bound on signal.

 req = sdo.requirements.SignalBound;
 sig = timeseries(1-exp(-(0:10)'));
 c = evalRequirement(req,sig);

c is negative, which indicates that the signal satisfies the bounds.

See Also

| |

Was this topic helpful?