10
INTRODUCTION TO SIMULINK AND GUIs By:- Mohammad Zeeshan

A Ppt on Simuling in MATLAB

Embed Size (px)

DESCRIPTION

simuling in matlab

Citation preview

Page 1: A Ppt on Simuling in MATLAB

INTRODUCTION TO

SIMULINK AND GUIs

By:- Mohammad Zeeshan

Page 2: A Ppt on Simuling in MATLAB

What is SIMULINK…? Simulink is a platform for multi-domain simulation and Model-

Based Design of dynamic systems and embedded systems.

Simulink can be used to design, simulate, implement and test communications, control, signal-processing and time varying systems.

Page 3: A Ppt on Simuling in MATLAB

What is SIMULINK…? Simulink also provides a simulation environment for

analysis, refinement, and validation of designs.

Page 4: A Ppt on Simuling in MATLAB

What is SIMULINK…? Engineers and Scientists across the world use Simulink

to solve real world applications in many industries.

Page 5: A Ppt on Simuling in MATLAB

To begin… Click New: Model from the File menu. This opens

a blank model window. You create a SIMULINK model by copying units, called blocks, from the various SIMULINK libraries into the model window.

Page 6: A Ppt on Simuling in MATLAB

To begin… We will explain how to use this procedure to model

the homogeneous linear ordinary differential equation u” + 2u’ + 5u = 0, which represents a damped harmonic oscillator.

Page 7: A Ppt on Simuling in MATLAB

What is GUI…? GUI stands for GRAPHICAL USER INTERFACE A graphical user interface (GUI), is a type of user

interface that allows users to interact with programs in more ways than typing such as computers; hand-held devices such as MP3 players, portable media players or gaming devices; household appliances and office equipment with images rather than text commands. A GUI offers graphical icons, and visual indicators, as opposed to text-based interfaces, typed command labels or text navigation to fully represent the information and actions available to a user. The actions are usually performed through direct manipulation of the graphical elements.

With MA TLAB you can create your own Graphical User Interface, or GUI, which consists of a Figure window containing menus, buttons, text, graphics, etc., that a user can manipulate interactively with the mouse and keyboard. There are two main steps in creating a GUI: One is designing its layout, and the other is writing callback functions that perform the desired operations when the user selects different features.

Page 8: A Ppt on Simuling in MATLAB

To begin… Select File:New:GUI from the Desktop menu bar

or type guide in the Command Window.

Page 9: A Ppt on Simuling in MATLAB

To begin… You can start building a GUI by clicking on one of the buttons

to the left of the grid, then moving to a desired location in the grid, and clicking again to place an object on the grid.

Page 10: A Ppt on Simuling in MATLAB

To begin… This was designing its layout

NOW OUR SIR WILL TELL US THE PROCESS OF WRITING CALL BACK

FUNCTION

THANK YOU