Simulink Basics
Simulink Basics
Summary - Modeling
Difference Equations
To model difference equations, use this
Don't worry, though, Signal Editor is just procedure. The procedure applies to both
another type of source, like Sine single equations and systems of equations.
Wave or Ramp. You can inspect these
signals by using what you learned
previously, and by adding a Scope to the
model. As an example, consider the set of
equations:
The MATLAB Function Block
In addition to reading and creating x[k]−x[k−1]=u[k]−u[k−1]
MATLAB variables, Simulink can utilize
MATLAB functions. Simulink blocks
perform a specific operation on inputs and
return outputs, which is analogous to u[k]=sin[k]
functions in text-based code. The MATLAB
Function block (Simulink > User-Defined Summary - Modeling
functions) enables you to incorporate a Difference Equations
MATLAB function directly into your model. To model difference equations, use this
procedure. The procedure applies to both
single equations and systems of equations.
Next Steps
Congratulations, you have just built your
first Simulink models! In this course, you
learned how to create mathematical and
logical expressions, as well as how to
model both discrete and continuous
dynamic systems. Simulink is a powerful
modeling environment used across
industries including aerospace, automotive,
signal processing, and wireless
communications.
MathWorks Training