Professional Documents
Culture Documents
An introductory tutorial
Wireless LANs Department of Telecommunication Systems and Networks Technological Education Institute of Messolonghi
F. Plessas 2012
Launch Matlab
Start All Programs Matlab 7.0
Your workspace
Library of elements Model is created in this window
Simulation diagram
Input is the forcing function 3sin(2t) Output is the solution of the differential x ( 0) = 1 equation x(t)
x &
1 s integrator
3sin(2t) (input)
x( t ) (output)
Simulation results
To verify that this plot represents the solution to the problem, solve the equation analytically. The analytical result,
x(t)=1/2 (3/2)cos(2t)
matches the plot (the simulation result) exactly.
Example 2
Constructing and simulating a simple circuit model:
Notes
Simulink blocks have zero, one or more inputs and zero, one or more outputs Inputs and outputs are all considered signals Unlike circuit-oriented simulators (e.g. Spice), Simulink has no knowledge of whether a signal is voltage, current, power, torque, speed, , which
makes it a very general tool for simulations of various dynamical systems, but requires a user to decide which signals are inputs and which signals are outputs, and make block connections to correctly model system equations; as a result, Simulink block diagrams may not be as intuitive as circuit diagrams
End of tutorial