# SampledData

This block implements a sampled data system. The system is defined by the block parameters, which are the A,B,C,D matrices of the underlying continuous-time linear system and the associated initial state vector. The resulting discrete-time linear system is computed using the values of the parameters and the activation period of the block. The block must be activated by a periodic activation signal.

## Library

Dynamical

## Description

This block implements a sampled data system. The system is defined by the block parameters, which are the A,B,C,D matrices of the underlying continuous-time linear system and the associated initial state vector. The resulting discrete-time linear system is computed using the values of the parameters and the activation period of the block. The block must be activated by a periodic activation signal.

## Parameters

Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|

| A matrix | real nxn matrix where n is the number of states, default value: 1. | Matrix | |

| B matrix | real nxm matrix where n is the number of states and m is the number of inputs, default value: 1. B=[ ] if block has no input. | Matrix | |

| C matrix | real rxn matrix, default value: 1. r is the number of outputs and n is the number of states. | Matrix | |

| D matrix | real rxm matrix where r is the number of outputs and m is the number of inputs, default value: 1. | Matrix | |

| Initial state | vector of size n or scalar (expanded to a vector of size n). | Vector | |

| Conversion type | Discretization method. | String | 'Standard' |

| External activation | This parameter defines if the block receives an external activation or inherits its activation through its regular input ports. When External Activation is used, an activation port is added to the block. The block should be activated by a periodic activation signal. | Number | 0 |

## Ports

Name | Type | Description | IO Type | Number |
---|---|---|---|---|

| explicit | output | 1 | |

| explicit | input | 1 | |

| activation | input | externalActivation |

## Advanced Properties

Name | Value | Description |
---|---|---|

| no | |

| no, except when D is not zero | |

| no | |

| no | |

| no | |

| yes |