SIMULINK - P2prod/Filter-Modeling-Simulation GitHub Wiki

SIMULINK is MATLAB's graphical editor. It is similar in principle to XCOS.

Here are a few examples of schematics that can be simulated.

Lead-lag filter with step and ramp input

2024-11-08 18_14_27-Window

2024-11-08 18_15_26-Window 2024-11-08 18_16_59-Window

State Space Modeling approach

Let's take the example of the series RLC circuit defined by its transfer function.

circuit_RLC_serie_tranfer_func

Example by rewriting the transfer function with an arrangement of functional blocks

We have already seen how to go from a transfer function to a simulable diagram. There are several ways:

  1. the FT is converted in ODE and the ODE is depicted with functional blocks such as integrators, summing blocks, gains, etc.)

  2. The ODE is redesigned to be “compatible” with the SSM approach. See "Example of a system described with a transfer function" in SSM approach

  3. We have also seen how to directly make the link with the SSM approach by using the standard SSM block diagram.

The above transfer function can be represented in the following form (it's not the only one possible):

SSM_diagram_with_Simulink

Scope_filtre_passe_bas_ordre_2_Simulink

R = 1 Ω, L= 2 H, C=1 F (note: these values are not realistic; they are chosen for educational purposes only).

Example with dedicated State Space Block

Capture_d'écran_2024-10-31_143941

Scope_filtre_passe_bas_ordre_2_Simulink

Last but not least, the matrix system A B, C, D can always be drawn in the same way, as shown in the figure below:

Capture_d'écran_2024-10-31_152858