Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

| |

Topics

    Was this topic helpful?