1 How to create GUI's in MatLAB Rigo Dicochea. 2 Introduction Graphical User Interface (GUI) MatLab provides Graphical User Interface Development Environment(GUIDE)

Slides:



Advertisements
Similar presentations
Introduction to Computers Section 6A. home The Operating System (OS) The operating system (OS) is software that controls the interaction between hardware.
Advertisements

An Introduction to Visual Basic Terms & Concepts.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Finite Element Method FEM Dr. Mohammed Al-Hazmi ANSYS Basics Lecture 4.
A graphical user interface (GUI) is a pictorial interface to a program. A good GUI can make programs easier to use by providing them with a consistent.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Get number The ginput command creates crosshairs. When the user clicks the x,y values of the crosshairs are returned.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
MENUS AND THE MENU EDITOR Elements of a Menu Menu bar Menu title Separator bar Menu items.
3D Game Programming All in One By Kenneth C. Finney.
Matlab GUIs Making Matlab Interactive. Today’s topics What is a GUI? How does a GUI work? Where do you begin? Ways to build MATLAB GUIs.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Programming a GUI Hanan sedaghat pisheh. For calling GUI, we need a function with no inputs or outputs First We create a m.file m file has the same name.
MATLAB Second Seminar. Previous lesson Last lesson We learnt how to: Interact with MATLAB in the MATLAB command window by typing commands at the command.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
An Introduction to Visual Basic
Digital Image Processing Lecture 14: GUI using Matlab
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
A short intermission about function handles and cell arrays A MATLAB function may be referenced by a handle. >> sphere(100)
Introduction to the Graphical User Interface (GUI) in MATLAB
Matlab GUIs GUIDE.
CS 170 – INTRO TO SCIENTIFIC AND ENGINEERING PROGRAMMING.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Introduction to Matlab & Data Analysis
Lesson 6. GCSE Computing – programming languages Candidates should be able to:  describe common tools and facilities available in an integrated development.
GUI development with Matlab: GUI Front Panel Components 1 GUI front panel components In this section, we will look at -GUI front panel components -Programming.
Integrated Development Environment (IDE)
Software Project Planning Defining the Project Writing the Software Specification Planning the Development Stages Testing the Software.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Selected Topics in Software Engineering - Distributed Software Development.
Introduction to Matlab’s Graphical User Interface (GUI) Type “guide” “Guide” creates interface on a Figure window and code in an M-file. Some hidden code.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room , Chris Hill, Room ,
Graphical User Interfaces I The central station is the bubble gum planet with 280 pounds of clay and three head phone lines that come out and orbit the.
Introduction to MATLAB Damon Tomlin February 22, 2008 Lecture 3: Data Visualization & User Interfaces.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Graphic User Interfaces (GUI) GUI provides a way to interact friendly with possibly complex programs. There are two types of GUI: - MDI: multiple document.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Introduction to Matlab & Data Analysis 2015 In this tutorial we will: Build a practical application using GUIDE Learn more about graphical user interface.
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
GUI development with Matlab: GUI Front Panel Components GUI development with Matlab: Other GUI Components 1 Other GUI components In this section, we will.
The Hong Kong Polytechnic University Industrial Centre 1 MatLAB Lesson 9 : Introduction to GUI & Revision Edward Cheung Room W311g.
CS112 Scientific Computation Department of Computer Science Wellesley College Interactive Programs Graphical User Interfaces.
EGR 115 Introduction to Computing for Engineers
Introduction to Matlab Module #10 Page 1 Introduction to Matlab Module #10 – Creating Graphical User Interfaces Topics 1.Overview of GUI Development using.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
Project Planning Defining the project Software specification Development stages Software testing.
MATLAB and SimulinkLecture 61 To days Outline Graphical User Interface (GUI) Exercise on this days topics.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
PATTERN RECOGNITION LAB 8 TA : Nouf Al-Harbi::
More Matlab Graphics and GUI Graphics subplots some useful commands 3D graphics GUI GUI controls The callback property Other essential properties.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Visual Basic .NET BASICS
Reading and Writing Image Files
Graphical User Interface in MATLAB
Visual Basic Code & No.: CS 218
Chapter Topics 15.1 Graphical User Interfaces
Lecture 25.
Improving Scilab’s Xcos User Interface
An Introduction to Visual Basic
Social Media And Global Computing Introduction to Visual Studio
Chapter 13 Sights and Sounds.
Chapter 15: GUI Applications & Event-Driven Programming
Using Script Files and Managing Data
CHAPTER FOUR VARIABLES AND CONSTANTS
Electrical and Computer Engineering Department SUNY – New Paltz
Presentation transcript:

1 How to create GUI's in MatLAB Rigo Dicochea

2 Introduction Graphical User Interface (GUI) MatLab provides Graphical User Interface Development Environment(GUIDE) A MatLab tool used to create GUI’s Decide between using GUIDE or writing the code from scratch GUI’s give the user a simplified experience running a program Associates a “function(s)” with components of the GUI

3 Graphical User Interface GUI should be consistent and easily understood. Provide the user with the ability to use a program without having to worry about commands to run the actual program Possible components of a GUI –Pushbuttons –Sliders –List boxes –Menus….etc Sample GUI

4 3 Essential Characteristics Components – –Graphical Components pushbuttons, edit boxes, sliders, labels, menus, etc… –Static Components Frames, text strings,… –Both are created using the function uicontrol Figures – components are contained in figures Callbacks – The functions which perform the required action when a component is pushed

5 GUIDE Properties Allows the user to drag and drop components that he/she wants in the “layout” area of the GUI All “guide” GUI’s start with an opening function –Callback is performed before user has access to GUI Saving automatically generates an.m file and.fig file.fig contains the binary GUI layout and.m contains the code that controls the GUI

6 Assessing the Value of Your GUI Ask yourself two basic questions when designing your GUI. –Do the users always know where they are? –Do they always know where to go next? Constantly answering these two questions will help you keep in perspective the goal of your GUI.

7 Callback Editor The “meat” of the GUI process Opening function is first callback in every “guide” generated GUI Usually used to generate data used in GUI Callbacks define what will happen when a figure component is selected Must write CODE!!!!

8 GUI EXAMPLE Utilize functions –Surf, Mesh, Contour Types of plots performed on data in example –Peaks peaks is a function of two variables, obtained by translating and scaling Gaussian distributions –Membrane –Sinc sinc computes the sinc function of an input vector or array, where the sinc function is

9 Summary At command prompt type “guide” After laying out your GUI in the layour editor Define data in Opening Function Edit/Align your components using –Tools Menu Align –View menu Property Inspector Write the Callbacks –This is the most difficult aspect when creating GUI’s

10 Where to Get More Information /techdoc/ref/peaks.html /techdoc/ref/peaks.html change/loadFile.do?objectId=5439&objectType= file change/loadFile.do?objectId=5439&objectType= file /techdoc/creating_guis/creating_guis.html?BB=1 Daniel Keller – thanks for taking time to help!