Introduction to Matlab & Data Analysis 2015 In this tutorial we will: Build a practical application using GUIDE Learn more about graphical user interface.

Slides:



Advertisements
Similar presentations
DATA RETRIEVAL AND GUI CREATION DAVID COOPER SUMMER 2014.
Advertisements

Chapter 3 Tables and Page Layout
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.
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 Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
3D Game Programming All in One By Kenneth C. Finney.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Introduction to Visual Basic Chulantha Kulasekere.
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.
Adding Controls to User Forms. Adding Controls A user form isn’t much use without some controls We’re going to add controls and write code for them Note.
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.
PowerPoint Presentation By: David Larson. IPA’s Identify Components of Visio 2010 interface, navigate a Visio drawing, and get help Using Visio. Manipulate.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
FactXML Customizing the Equilib results 1.0.
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.
Ranjeet Department of Physics & Astrophysics University of Delhi Working with Origin.
HTML presentation Embedding Graphics in Web Pages n HTML uses an empty tag called the (image tag) n n n or n n n Note: all web production tools do insert.
Introduction to Matlab & Data Analysis
Java Software Solutions Lewis and Loftus Chapter 10 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Graphical User Interfaces --
Chapter 10 Fireworks: Part II The Web Warrior Guide to Web Design Technologies.
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.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
MA/CS 3751 Fall 2002 Lecture 24. MA/CS 3752 ginput ginput is a Matlab function which takes one argument input: number of points to select in the image.
Creating Buttons – Lesson 51 Creating Buttons Lesson 5.
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.
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.
NA-MIC National Alliance for Medical Image Computing Slicer3 Tutorial: Registration Library Case 14 Intra-subject Brain PET-MRI fusion.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
Graphic User Interfaces (GUI) GUI provides a way to interact friendly with possibly complex programs. There are two types of GUI: - MDI: multiple document.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Network for Computational Nanotechnology (NCN) MEEPPV User Guide Xin Tze Tee Electrical and Computer Engineering Purdue University West Lafayette, IN
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
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.
XP Tutorial 8 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Object Linking and Embedding Tutorial 8.
CS112 Scientific Computation Department of Computer Science Wellesley College Interactive Programs Graphical User Interfaces.
EGR 115 Introduction to Computing for Engineers
EGR 115 Introduction to Computing for Engineers Graphical User Interface Design in MATLAB - Part 2 Monday 24 Nov 2014 EGR 115 Introduction to Computing.
To play, start slide show and click on circle Lesson 1 Lesson 1 Lesson 2 Lesson 2 Lesson Lesson 3.
Introduction to Matlab Module #10 Page 1 Introduction to Matlab Module #10 – Creating Graphical User Interfaces Topics 1.Overview of GUI Development using.
CS112 Scientific Computation Department of Computer Science Wellesley College Blind to change More on GUIs.
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.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
Lecture (7) Introduction to GUI Eng. Osama Talaat 1.
MATLAB and SimulinkLecture 61 To days Outline Graphical User Interface (GUI) Exercise on this days topics.
PATTERN RECOGNITION LAB 8 TA : Nouf Al-Harbi::
Web and Multimedia Development Copyright © Genetic Computer School 2007WM LESSON OVERVIEW  Use of Tables  Creating Tables  Try It – 1  Creating.
More Matlab Graphics and GUI Graphics subplots some useful commands 3D graphics GUI GUI controls The callback property Other essential properties.
S15-1 ADM , Section 15, August 2005 Copyright  2005 MSC.Software Corporation SECTION 15 DIALOG BOX BUILDER.
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Graphical User Interfaces I
Graphical User Interface in MATLAB
More on Graphical User Interfaces
Graphical User Interfaces -- Introduction
MATLAB GUI with GUIDE 報告人:張捷勝.
Embedding Graphics in Web Pages
Chapter 13 Sights and Sounds.
Electrical and Computer Engineering Department SUNY – New Paltz
Presentation transcript:

Introduction to Matlab & Data Analysis 2015 In this tutorial we will: Build a practical application using GUIDE Learn more about graphical user interface components Practice building callback functions that display data and manipulate the GUI This will be a step-by-step design procedure 1GUIDE Tutorial

1.Open a blank template in GUIDE 2.Open the Preferences dialog and toggle the “Show names” option 2GUIDE Tutorial

3. Add a push button 4. Duplicate this button 2 times to create 3 buttons 3GUIDE Tutorial

5. Add a panel to contain our buttons. Move the buttons on to the panel. 6. Add an axis for the surface plot 4GUIDE Tutorial Adjust the window size by moving this corner

GUIDE Tutorial5 7. You can align and distribute components

GUIDE Tutorial6 8. Open the Properties Inspector of each push button and change the String and the Tag

GUIDE Tutorial7 9. Using the Properties Inspector, edit the options string for the pop-up menu 10. At this point you can activate the GUI, this will generate an *.m file and a *.fig file

GUIDE Tutorial8 11. We will now go to the opening function which is called when the GUI starts * To share data between the GUI objects we use the handles structure which is passed between functions

GUIDE Tutorial9 12. Here we will define three datasets and create and initial plot * To share data between the GUI objects we use the handles structure which is passed between functions

GUIDE Tutorial Now we will edit the callback functions of the pushbuttons to update the 2D plotting method handles.current_data stores our current dataset

GUIDE Tutorial And finally we need to update the callback of the pop-up menu to update the right dataset Don’t forget to update the handles structure using the function guidata()

GUIDE Tutorial Now your GUI should be fully functional. You can activate it from the editor, layout editor or the command line

GUIDE Tutorial13 1. Create a new GUI layout called ‘slider’. This GUI will slide to the right MRI slice

GUIDE Tutorial14 2. In the opening function, load the MRI data and display the first slice

GUIDE Tutorial15 3. In the slider callback function we shall calculate the requested frame number and display it

GUIDE Tutorial16 4. Try to slide through the axial slices of the dataset

GUIDE Tutorial17 5. Now let’s display the current slice number in the static text set(handles.frame_num,'string',num2str(handles.current_frame)); guidata(hObject, handles);