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.

Sample Control Design blocks in generalized model

`Msamp = sampleBlock(M,name,vals)`

`Msamp = sampleBlock(M,nameset,valset)`

`Msamp = sampleBlock(M,nameset1,valset1,nameset2,valset2,...,namesetM,valsetM)`

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

samples
one Control Design block in the generalized model `Msamp`

= sampleBlock(`M`

,`name`

,`vals`

)`M`

.
The result `Msamp`

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

obtained by replacing the block with the specified values,
where `N`

is the number of values in `vals`

.

independently samples multiple blocks.
`Msamp`

= sampleBlock(`M`

,nameset1,valset1,nameset2,valset2,...,namesetM,valsetM)`nameset1,nameset2,...,namesetM`

can each be a single block
name (see `name`

) or a cell array of names (see
`nameset`

). The model `M`

is sampled over
a grid of size `[N1 N2 ... NM]`

, where `N1`

is the
number of values in `valset1`

, `N2`

is the number
of values in `valset2`

, and so on. The resulting
`Msamp`

is an array of size ```
[size(M) N1 N2 ...
NM]
```

.

`genmat`

| `genss`

| `getValue`

| `replaceBlock`

| `rsampleBlock`

| `uss`