# setEstimator

Modify a model predictive controller’s state estimator

## Description

`setEstimator(`

sets the gain matrices used for estimation of the states of an MPC controller. For more
information, see State Estimator Equations.`mpcobj`

,`L`

,`M`

)

`setEstimator(`

specifies that
controller state estimation will be performed by a user-supplied procedure. This option
suppresses calculation of `mpcobj`

,'custom')`L`

and `M`

. When the controller
is operating in this way, the procedure must supply the state estimate `x[n|n]`

to the controller at the beginning of each control interval.

## Examples

## Input Arguments

## Algorithms

## Version History

**Introduced in R2014b**

## See Also

### Functions

`getEstimator`

|`kalman`

|`getindist`

|`getoutdist`

|`get`

|`set`

|`sim`

### Objects

`mpc`

|`mpcstate`

|`mpcsimopt`

|`mpcmoveopt`