matlab bval,Substitute given values for uncertain elements of uncertain objects

usubs函数用于在不确定模型对象中替换特定值。它可以替换不确定元素,并且替换值自身也可以是不确定的。该函数接受元素名称和对应值作为参数,可以批量或按需替换。对于模型数组,'-once'选项进行向量化替换,每个模型元素可能有不同的值,而'-batch'选项则使用相同值批量替换所有模型元素。
摘要由CSDN通过智能技术生成

Description

Use usubs to substitute a specific value for an uncertain element of an

uncertain model object. The value can itself be uncertain. It needs to be the correct size, but

otherwise can be of any class, and can be an array. Hence, the result can be of any class. In

this manner, uncertain elements act as symbolic placeholders, for which specific values (which

can also contain other placeholders too) can be substituted.

B = usubs(M,ElementName1,value1,ElementName2,value2,...)

sets the elements in M, identified by ElementName1,

ElementName2, etc., to the values in value1,

value2, etc. respectively.

You can also use the character vectors 'NominalValue' or

'Random' as any value argument. If you do so, the nominal

value or a random instance of the uncertain element is used. You can partially specify these

character vectors, instead of typing the full expression. For example, you can use

'Nom' or 'Rand'.

B = usubs(M,S) instantiates the uncertain elements of

M to the values specified in the structure S. The field

names of S are the names of the uncertain elements to replace. The values are

the corresponding replacement values. To provide several replacement values, make

S a struct array, where each struct contains one set of replacement values. A

structure such as S typically comes from robustness analysis commands such as

robstab, usample, or wcgain.

B = usubs(M,...,'-once') performs vectorized substitution in the

uncertain model array M. Each uncertain element is replaced by a single value,

but this value may change across the model array. To specify different substitute values for each

model in the array M, use:

A cell array for each valueN that causes the uncertain element

ElementNameN in M(:,:,k) to be replaced by

valueN(k). For example, if M is a 2-by-3 array, then a

2-by-3 cell array value1 replaces ElementName1 of the

model M(:,:,k) with the corresponding value1(k).

A struct array S that specifies one set of substitute values

S(k) for each model M(:,:,k).

Numeric array formats are also accepted for value1,value2,.... For

example, value1 can be a 2-by-3 array of LTI models, a numeric array of size

[size(name1) 2 3], or a 2-by-3 matrix when the uncertain element

name1 is scalar-valued. The array sizes of M,

S, value1,value2,... must agree along non-singleton

dimensions. Scalar expansion takes place along singleton dimensions.

Vectorized substitution ('-once') is the default for model arrays when no

substitution method is specified.

B = usubs(M,...,'-batch') performs batch substitution in the uncertain

model array M. Each uncertain element is replaced by an array of values, and

the same values are used for all models in M. In batch substitution,

B is a model array of size [size(M) VS], where

VS is the size of the array of substitute values.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值