


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



























Or just type simulink as shown here to start simulink
To start Simulink, you must first start MATLAB.
Consult your MATLAB documentation for more information.
You can then start Simulink in two ways:
On Microsoft Windows platforms, starting Simulink displays the Simulink Library Browser as shown here.
To create a new model on Windows, click the New Model button on the Library Browser's toolbar.
Simulink opens a new model window as shown below:
Simulink Library
Sources Library
Sine Wave Block
Now drag a copy of the Sine Wave block from the browser and drop it in the model window.
Here is how the Library Browser should look after you have done all this.
To copy the Sine Wave block from the Sources library window, open the Sources window by double-clicking the Sources icon in the Simulink library window.
On Windows, you can open the Simulink library window by right-clicking the Simulink node in the Library Browser and then clicking the resulting Open Library button. Simulink displays the Sources library window as shown here.
Now it's time to connect the blocks. Connect the Sine Wave block to the top input port of the Mux block. Position the pointer over the output port on the right side of the Sine Wave block. Notice that the cursor shape changes to crosshairs
Hold down the mouse button and move the cursor to the top input port of the Mux block. Notice that the line is dashed while the mouse button is down and that the cursor shape changes to double-lined crosshairs as it approaches the Mux block.
Now release the mouse button. The blocks are connected. You can also connect the line to the block by releasing the mouse button while the pointer is over the block. If you do, the line is connected to the input port closest to the cursor's position.
Drawing a branch line is slightly different from drawing the line you just drew. To weld a connection to an existing line, follow these steps:
First, position the pointer on the line between the Sine Wave and the Mux block.
Press and hold down the Ctrl key (or click the right mouse button). Press the mouse button, then drag the pointer to the Integrator block's input port or over the Integrator block itself Release the mouse button. Simulink draws a line between the starting point and the Integrator block's input port.