# sampleBlock

Sample Control Design blocks in generalized model

## Syntax

## Description

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]
```

.

## Examples

## Input Arguments

## Output Arguments

## Version History

**Introduced in R2016a**

## See Also

`replaceBlock`

| `rsampleBlock`

| `getValue`

| `genss`

| `genmat`

| `uss`

(Robust Control Toolbox)