We have seen in Chapter 5 how to construct block-diagrams for simulation using integrators and, from there, derive state-space equations. The task was made easier if it was possible to use a chain of integrators, which led to a trivial definition of the state. In many cases that strategy is enough.

Continue reading “From differential equations to state-space and beyond”# Tag: matlab

## Simulating linear systems with non-zero initial conditions

I have discussed in another post how to work with state-space models to simulate the response of linear systems using Matlab’s `lsim`

. It is however also possible to approach this problem from a transfer-function point of view without having to mess with state-space at all.

## Simulating linear systems with non-zero initial conditions in state space

Matlab’s `lsim`

function for simulating linear systems will give you the option to provide an initial condition if your system is in state-space but not for transfer-functions.

## Simulating linear systems with Matlab’s lsim

In this post we will go over a couple of ways to simulate linear systems in Matlab.

Continue reading “Simulating linear systems with Matlab’s lsim”