| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink Control Design |
| Contents | Index |
| Learn more about Simulink Control Design |
To begin linearization using functions, you must first create or open a Simulink model of your system. The model can have any number of inputs and outputs (including none) and any number of states. The model can include user-defined blocks or S-functions. Your model can involve a plant only, a plant with a feedback loop and controller, or any number of subsystems.
To continue with the water-tank example, type
watertank
at the MATLAB prompt. This opens a Simulink model containing the water-tank system as shown in this figure.
Simulink Model of the Water-Tank System

The watertank model consists of
The water-tank system itself
A PID Controller to control the height of water in the tank by varying the voltage applied to the pump
A reference signal that sets the desired water level
A Scope block that displays the height of water as a function of time
Double-click a block to view its contents. The Water-Tank System block is shown in this figure.
Water-Tank System Block

The input to the Water-Tank System block, which is also the output of the PID Controller block, is the voltage, V. The output is the height of water, H. The system contains just one state (within the integrator), H. Values of the parameters are given as a=2 cm2.5/s, A=20 cm2, b=5 cm3/(s·V).
![]() | Example: Water-Tank System | Computing Operating Points from Specifications | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |