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
State Space Modeling approach
Let's take the example of the series RLC circuit defined by its transfer function.
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:
-
the FT is converted in ODE and the ODE is depicted with functional blocks such as integrators, summing blocks, gains, etc.)
-
The ODE is redesigned to be “compatible” with the SSM approach. See "Example of a system described with a transfer function" in SSM approach
-
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):
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
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: