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.

set

Set property values

Syntax

set(req,Name,Value,)

Description

set(req,Name,Value,) sets the property value of a requirement object (sdo.requirements.StepResponseEnvelope, ...). Specify the property name and value using one or more Name,Value pair arguments.

Input Arguments

req

Requirement object (sdo.requirements.StepResponseEnvelope, ...)

Name,Value

Property name of a requirement object (sdo.requirements.StepResponseEnvelope, ...), and the corresponding value to set.

Examples

Specify property values.

r = sdo.requirements.SignalBound;
set(r,'BoundTimes',[0 5;5 10], ...
    'BoundMagnitudes',[1.1 1.1; 1.01 1.01]);

Tips

  • Use set to simultaneously change properties that you cannot change independently.

Alternatives

You can set data in properties using dot notation: object.PropertyName. However, you can not simultaneously set the value of more than one property using dot notation, use set instead.

Introduced in R2011b

Was this topic helpful?