Using Simulink | ![]() ![]() |
Modeling Equations
One of the most confusing issues for new Simulink users is how to model equations. Here are some examples that might improve your understanding of how to model equations.
Converting Celsius to Fahrenheit
To model the equation that converts Celsius temperature to Fahrenheit
First, consider the blocks needed to build the model:
Next, gather the blocks into your model window.
Assign parameter values to the Gain and Constant blocks by opening (double-clicking) each block and entering the appropriate value. Then, click the Close button to apply the value and close the dialog box.
The Ramp block inputs Celsius temperature. Open that block and change the Initial output parameter to 0. The Gain block multiplies that temperature by the constant 9/5. The Sum block adds the value 32 to the result and outputs the Fahrenheit temperature.
Open the Scope block to view the output. Now, choose Start from the Simulation menu to run the simulation. The simulation runs for 10 seconds.
![]() | Modeling with Simulink | Modeling a Simple Continuous System | ![]() |