Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Randomly sample Control Design blocks in generalized model

`Msamp = rsampleBlock(M,names,N)`

`Msamp = rsampleBlock(M,names1,N1,names2,N2,...,namesM,NM)`

```
[Msamp,samples]
= rsampleBlock(___)
```

randomly
samples a subset of the Control Design blocks in the generalized
model `Msamp`

= rsampleBlock(`M`

,`names`

,`N`

)`M`

. The `names`

argument
specifies which blocks to sample, and `N`

specifies
how many samples to take. The result `Msamp`

is
a model array of size `[size(M) N]`

obtained by replacing
the sampled blocks with their randomized values.