/
Computer Applications: MATLAB Computer Applications: MATLAB

Computer Applications: MATLAB - PowerPoint Presentation

ariel
ariel . @ariel
Follow
1 views
Uploaded On 2024-03-13

Computer Applications: MATLAB - PPT Presentation

Dr Mayas Aljibawi ALMustaqbal University College Lecture Number 10 SIMULINK 2 SIMULINK SIMULINK is an interactive environment for modeling analyzing and simulating a wide variety of dynamic systems SIMULINK provides a graphical user interface for constructing block diag ID: 1047528

simulink block model library block simulink library model matlab diagram wave temperature results systems create celsius output input system

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "Computer Applications: MATLAB" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

1. Computer Applications: MATLAB Dr. Mayas AljibawiAL-Mustaqbal University College

2. Lecture Number 10 SIMULINK2

3. SIMULINK:SIMULINK is an interactive environment for modeling, analyzing, and simulating a wide variety of dynamic systems. SIMULINK provides a graphical user interface for constructing block diagram models using “drag-and-drop” operations. A system is configured in terms of block diagram representation from a library of standard components. SIMULINK is very easy to learn. A system in block diagram representation is built easily and the simulation results are displayed quickly. The key features of SIMULINK are:Interactive simulations with live display.A comprehensive block library for creating linear, nonlinear, discrete or hybrid multi-input/output systems.Seven integration methods for fixed-step, variable-step, and stiff systems.Unlimited hierarchical model structure.Scalar and vector connections.Mask facility for creating custom blocks and block libraries.3

4. Starting SimulinkTo start Simulink, you must first start MATLAB. Consult your MATLAB documentation for more information. You can then start Simulink in two ways:Click the Simulink icon on the MATLAB toolbar.Enter the simulink command at the MATLAB prompt.Starting Simulink displays the Simulink library Browser.4

5. Creating an Empty ModelTo create an empty model, click the New button on the Library Browser’s toolbar or choose New from the library window’s File menu and select Model. Simulink creates an empty model in memory and displays it in a new model editor window.5

6. Example:Model the equation that converts Celsius temperature to Fahrenheit. Obtain a display of Fahrenheit-Celsius temperature graph over a range of 0 to 1000C.First, consider the blocks needed to build the model. These are:A ramp block to input the temperature signal, from the source library.A constant block, to define the constant of 32, also from the source library.A gain block, to multiply the input signal by 9/5, from the Linear library.A sum block, to add the two quantities, also from the Linear library.A scope block to display the output, from the sink library.6

7. 7Simulink diagram for the system of the exampleFahrenheit-Celsius temperature graph for the example

8. Example:Create a sine wave and transfer the output to workspace for plotting.First, consider the blocks needed to build the model. These are:Sine wave block to create the wave, from the source library.Scope block to view the results, from the sink library.To workspace block to transfer the wave, also from the sink libraryb.After that we can use the plot command to show the results in a figure.8

9. 9

10. End10