MATLAB GUI with GUIDE 報告人:張捷勝.

Slides:



Advertisements
Similar presentations
Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Advertisements

Y A S O O B A L I b o r n o n 1 9 t h F e b r u a r y i n K a n p u r d i s t r i c t o f U t t a r P r a d e s h. H e s t a r t e d s i n g i.
®® Microsoft Windows 7 for Power Users Tutorial 2 Customizing Microsoft Windows 7.
DATA RETRIEVAL AND GUI CREATION DAVID COOPER SUMMER 2014.
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.
1 How to create GUI's in MatLAB Rigo Dicochea. 2 Introduction Graphical User Interface (GUI) MatLab provides Graphical User Interface Development Environment(GUIDE)
Copying Web images (the right mouse button is your friend) Skills: Copy a Web image, see the properties of a Web image, use the right mouse button IT concepts:
3D Game Programming All in One By Kenneth C. Finney.
My Workspace Profile. Using the course menu, click on Profile.
®® Microsoft Windows 7 for Power Users Tutorial 2p1 Customizing Microsoft Windows 7.
Access Tutorial 10 Automating Tasks with Macros
Buttons and Hyperlinks in PowerPoint To add a button: 1.Open a PowerPoint Project and select the slide on which you wish to place a button. 2.Click on.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
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.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
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.
Written by: Itzik Ben Shabat Technion - Israel Institute of Technology Faculty of Mechanical Engineering Laboratory for CAD & Lifecycle Engineering Lab.
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
FLTK Tutorial.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Nonvisual Arrays and Recursion by Chris Brown under Prof. Susan Rodger Duke University June 2012.
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.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
HTML presentation Graphics H format H data compression H size H creating or finding H publishing.
3461A Readings from the Swing Tutorial. 3461A Overview  The follow is the Table of Contents from the trail “Creating a GUI with JFC/Swing” in the “The.
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.
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.
function varargout = MovieJoiner(varargin) % MOVIEJOINER M-file for MovieJoiner.fig % MOVIEJOINER, by itself, creates a new MOVIEJOINER or raises the.
Introduction to MATLAB Damon Tomlin February 22, 2008 Lecture 3: Data Visualization & User Interfaces.
JavaScript - A Web Script Language Fred Durao
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
How to create an eBook in PowerPoint. Video.
Introduction to Matlab & Data Analysis 2015 In this tutorial we will: Build a practical application using GUIDE Learn more about graphical user interface.
CHAPTER:07 JAVA IDE PROGRAMMING-II Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
PhotoStory3 Novice User Tutorial Follow the steps in this tutorial to create a basic slideshow with eight images with an audio track and export it to the.
1 HTML forms (cont.)
CS112 Scientific Computation Department of Computer Science Wellesley College Interactive Programs Graphical User Interfaces.
EGR 115 Introduction to Computing for Engineers
INFORMATION SYSTEM – SOFTWARE TOPIC: GRAPHICAL USER INTERFACE.
EGR 115 Introduction to Computing for Engineers Graphical User Interface Design in MATLAB - Part 2 Monday 24 Nov 2014 EGR 115 Introduction to Computing.
Graphic User Interface Review of Lecture 1 to Lecture 6 C.F. Lu.
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.
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::
User Manual for Tmaptool – T1 ρ processing tool Guruprasad Krishnamoorthy Chetana Bayas Gargi Pednekar.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
A little PHP. Enter the simple HTML code seen below.
Graphical User Interfaces I
Graphical User Interface in MATLAB
Chapter Topics 15.1 Graphical User Interfaces
More on Graphical User Interfaces
Graphical User Interfaces -- Introduction
Embedding Graphics in Web Pages
How to stop C programming problems at the source
Welcome to the MaxTRAQ Tour
Welcome to the MaxTRAQ Tour
Electrical and Computer Engineering Department SUNY – New Paltz
Presentation transcript:

MATLAB GUI with GUIDE 報告人:張捷勝

Why GUI (Graphical User Interfaces)? User-friendly Visualization Convenient analysis tool … Threshold α β

An Example

How to Start Your Own GUI ?

How to Start Your Own GUI ?

How to Start Your Own GUI ?

How to Start Your Own GUI ?

How to Start Your Own GUI ?

How to Start Your Own GUI ? Unlike function calls, command line returns to the next line.

myGUI.m Variable-length output/input argument list EX: [out1, out2, out3] = myGUI( in1, in2, in3 ); There is no “end” at the end of every function

OpeningFcn & OutputFcn

What is a handle?

OpeningFcn & OutputFcn ‘handles’ is stored with the object specified by ‘hObject’.

A Simple Example Input file name of an image Show the image on axes Use slider to adjust brightness Use radio button to invert the image Use push button to reset to original image

OpeningFcn Figure Axes Image

slider1_CreateFcn or Be careful when you change the ‘Tag’ property Saving ‘myGUI.fig’ will update your ‘myGUI.m’ file.

Change Button String Reset

Change Button String Invert

Change Button String Brightness

slider1_Callback Be sure to add this line if any variable stored in ‘handles’ is changed and need updating. This function will be defined in a later slide. It updates the image on axes1 based on variables in ‘handles’.

radiobutton1_Callback

pushbutton1_Callback

updateImage [ Figure Axes Image or This function is defined in the next slide. or [ 100 times slower

ChgLum (Adjust Brightness)

Advanced GUI Control - Listener Allow brightness to change continuously as slider slides

Advanced GUI Control - Listener Allow brightness to change continuously as slider slides

Advanced GUI Control - Mouse ButtonDownFcn (property on Figure, Axes, and Image class) WindowScrollWheelFcn (property on Figure class)

Advanced GUI Control - Mouse Click on image to show cooridnates Scroll mouse wheel to adjust slider

Advanced GUI Control - Mouse Click on image to show cooridnates Scroll mouse wheel to adjust slider

Reference Tutorial video on MathWork https://www.mathworks.com/videos/creating-a-gui-with-guide- 68979.html

Any Question?

Thanks For Your Attention