Still More About Matlab GUI s (v. 1.3) Popup Menus. Popup Menu Exercise. Still More GUI Info - GE /29/2012. Copyright C. S. Tritt, Ph.D.

Similar documents
Graphical User Interface. GUI in MATLAB. Eng. Banan Ahmad Allaqta

There are two ways to launch Graphical User Interface (GUI). You can either

Building a Graphical User Interface

BUILDING A MATLAB GUI. Education Transfer Plan Seyyed Khandani, Ph.D. IISME 2014

Special Topics II: Graphical User Interfaces (GUIs)

SBT 645 Introduction to Scientific Computing in Sports Science #5

Adding Dynamics. Introduction

INTRODUCTION TO MATLAB INTERACTIVE GRAPHICS EXERCISES

Computational Methods of Scientific Programming. Matlab Lecture 3 Lecturers Thomas A Herring Chris Hill

FLORIDA INTERNATIONAL UNIVERSITY EEL-6681 FUZZY SYSTEMS

Computational Methods of Scientific Programming

GUI Building for Test & Measurement Applications

MATLAB. Creating Graphical User Interfaces Version 7. The Language of Technical Computing

Developing a MATLAB-Based Control System Design and Analysis Tool for Enhanced Learning Environment in Control System Education

Purpose: How to train an MLP neural network in MATLAB environment!

PCSchool Search User Guide. Search User Guide. Created in version /11

CNBC Matlab Mini-Course

Quick Tutorial. Overview. Creating an Effect

Chapter 9 GUI Programming Using Tkinter. Copyright 2012 by Pearson Education, Inc. All Rights Reserved.

The Language of Technical Computing. Computation. Visualization. Programming. Creating Graphical User Interfaces Version 1

Chemistry 30 Tips for Creating Graphs using Microsoft Excel

Introduction to Programming Using Python Lecture 6. Dr. Zhang COSC 1437 Spring, 2018 March 01, 2018

Section 4.3. Graphing Exponential Functions

Technology Assignment: Scatter Plots

How to properly format Word for MLA format and keep it that way!

Introduction To MATLAB Interactive Graphics

Part #10. AE0B17MTB Matlab. Miloslav Čapek Viktor Adler, Pavel Valtr, Filip Kozák

INTRODUCTION TO THE MATLAB APPLICATION DESIGNER EXERCISES

Investigating Transformations With DESMOS

Contents: Introduction Page Hardware...Page Connecting Inputs and Outputs..Page Software.Page 6

Review: Event Driven Programming & GUI. CSCE155N Matlab Fall 2016

MATLAB Introduction To Engineering for ECE Topics Covered: 1. Creating Script Files (.m files) 2. Using the Real Time Debugger

USER's GUIDE for PLOT_FINDIF_1

Website Development Komodo Editor and HTML Intro

SYSTEM IDENTIFICATION TOOLBOX FOR MATLAB: DEVELOPING A GRAPHICAL USER INTERFACE. Rebecca L. Leonard, University of Arkansas

Excel Simulations - 1

Guided Analysis of WS3

Three-Dimensional (Surface) Plots

1 Build Your First App. The way to get started is to quit talking and begin doing. Walt Disney

Excel for Gen Chem General Chemistry Laboratory September 15, 2014

Step-by-step guide to making a simple graph in Google Sheets Mariëlle Hoefnagels, University of Oklahoma

Structure Arrays. An Example. Structures (v. 1.1) Structures -- GE /6/2011. Copyright C. S. Tritt, Ph.D. 1. C. S. Tritt, Ph.D.

Trigonometric Graphs. Inverness College. September 29, 2010

Additions to the CREWES Matlab Library

Facebook Network Analysis Using Gephi

SchoolDesk University

New Website User Manual

Keynote 08 Basics Website:

Insight: Measurement Tool. User Guide

Warm-Up Exercises. Find the x-intercept and y-intercept 1. 3x 5y = 15 ANSWER 5; y = 2x + 7 ANSWER ; 7

Numbers Basics Website:

Interactive Programs

Instructions on Adding Zeros to the Comtrade Data

STA 303 / 1002 Using SAS on CQUEST

Exhibitor Software User s Manual. Exhibitor Software V

BPS 42 Chart Examples View

Motion Creating Animation with Behaviors

AEMLog users guide V User Guide - Advanced Engine Management 2205 West 126 th st Hawthorne CA,

Investigating Transformations of Quadratics Open Google Chrome. Go to desmos.com, and click the big red button labelled Launch Calculator.

PC-MATLAB PRIMER. This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens.

SmartSet App User Manual Version 1.1 Introduction

ReLab OPC Server IEC OPC Device Driver. Quick Start Guide

How to Make Your RooFolio

Table of Contents. Introduction.*.. 7. Part /: Getting Started With MATLAB 5. Chapter 1: Introducing MATLAB and Its Many Uses 7

Getting Started with DADiSP

Capstone Appendix. A guide to your lab computer software

You are to turn in the following three graphs at the beginning of class on Wednesday, January 21.

CREATING PRESENTATION

ECLIPSECX Ethernet Software for OSX

PROGRAMMING AND ENGINEERING COMPUTING WITH MATLAB Huei-Huang Lee SDC. Better Textbooks. Lower Prices.

Biometric Data Acquisition using MATLAB GUIs

KINETICS CALCS AND GRAPHS INSTRUCTIONS

CSE P567 - Winter 2010 Lab 1 Introduction to FGPA CAD Tools

CourseContents: 1.Introduction to MATLAB. 2. Handling data and data flow in MATLAB. 3. Editing and Debugging M-FILES

Using Dreamweaver CS6

ASIC-200 Version 5.0. integrated industrial control software. HMI Guide

(1B) Click Browse and select the AASPI-format file (*.H) that you want to display. After you browse the file, the Colorbar file name (1C), plot title

Using Dreamweaver. 6 Styles in Websites. 1. Linked or Imported Stylesheets. 2. Embedded Styles. 3. Inline Styles

This book will help you quickly create your first documents, spreadsheets, and slideshows.

10.4 Inputs without Waiting

Playlist Builder 1.5 Manual

SMAC Control Center Training v1.2. The Ability to do Work & Verify it s Accuracy at the Same Time

Creating a T-Spline using a Reference Image

AEMLog Users Guide. Version 1.01

Models for Nurses: Quadratic Model ( ) Linear Model Dx ( ) x Models for Doctors:

Fibonacci numbers introduce vectors, functions and recursion. An exercise introduces graphics user interfaces.

SolidWorks Intro Part 1b

SciGraphica. Tutorial Manual - Tutorials 1and 2 Version 0.8.0

Sharing is the Key. Lecture 25: Parallelism. Canonical Example. Bad Interleavings. Common to have: CS 62 Fall 2016 Kim Bruce & Peter Mawhorter

Select the Points You ll Use. Tech Assignment: Find a Quadratic Function for College Costs

HOUR 12. Adding a Chart

Data needs to be prepped for loading into matlab.

Translation To translate an object we have to set up a translation matrix. We can enter this in matrix [B]

2.1 Transforming Linear Functions

Exercise 4a: Creating and Editing XY Plots

10 Inventions on Command Buttons in a Graphical User Interface

Graphing Single Subject Research Data. AAC Colloquium October 18 th, 2017

1.a) Go to it should be accessible in all browsers

Introduction to Form Controls

GeoVISTA Studio Tutorial. What is GeoVISTA Studio? Why is it part of the map making and visualization workshop?

Transcription:

Still More About Matlab GUI s (v. 1.3) Dr. C. S. Tritt with slides from Dr. J. LaMack January 24, 2012 Popup Menus User selects one from a mutually exclusive list of options The String property is typically the only property that is set Set during creation using the matrix editor Set in functions with the set command; must be a cell array of strings (each string is an option) Get the Value property, which is the index number of the option chosen. Note that the Value can be used to extract the correspond String text. Popup Menu Exercise Create a GUI with a popup menu (ColorPopup) that contains the four color names: Red, Green, Blue, Black When one of these is selected, display the name of the color in its appropriate color using static text component (ColorText). Name the figure Pop-up Demo and save it as popupdemo. See ColorMixDemo in a few slides. Copyright C. S. Tritt, Ph.D. 1

List Boxes Similar to popup menu, except user can select more than one item from the list. Set max min greater than one to allow more than one selection. User selects multiple items by holding down the shift button String property defines the list items (set during creation or with set command as a cell array) List Box Interface Options The callback function is called any time any contained component item is selected. The boxes value property will be an array containing the numbers of all currently selected items (e.g., 2 or [1 3 4]). Use the figure s SelectionType property to obtain the nature of the most recent mouse action. In the box callback, use gcbf (get callback figure) to get the figure handle. Then get its SelectionType. For a simple single click, it is normal. For a double click, it is open. As an alternative to dealing with mouse click types, provide a pushbutton for the user to use to indicate being done selecting. Sliders Allows the user to select a value within a continuous range. Range extremes are min and max. Value property is the output. Updated after the slider is moved (mouse button released). There doesn t appear to be any simple way to track the slider position as it moves in GUIDE created Matlab programs. See ColorMixDemo for an example. Copyright C. S. Tritt, Ph.D. 2

Practice Create the GUI to the right with the following features: Font color represents chosen colors User can select one or more colors to mix Responds to double click or button push Brightness level defaults to 100% when a new color mixture is selected Strategies Responses to double click or button push will be identical Store the base color array as application data and multiply the slider value (0 to 1) by this array to create the brightness-adjusted color Panels and Button Groups Containers, not created by uicontrol like other controls. uipanel uibuttongroup As with uicontrol s, you ll probably create using the GUIDE. Property Inspector for a list of properties for panels and button groups. Copyright C. S. Tritt, Ph.D. 3

Panels Similar to figures, but no title bar and cannot have attached menus Generally just to group things together Mostly for looks and organization no particular added functionality Button Groups A way to organize a group of on/off buttons (radio buttons, toggle buttons, check boxes) such that only one can be selected at a time Introduced in previous example. Not covered well in your book Button Group Details When a button in a group is selected, the function ButtonGroupName_SelectionChangeFcn is activated, rather than the Callback function associated with the button The SelectionChangeFcn is not automatically generated. See next slide to see how to generate it. Copyright C. S. Tritt, Ph.D. 4

Generation of.selectionchangefcn More Button Group Details The Tag property will then be equal to that of the chosen button. Use hobject to specify the handle when analyzing this tag, since you don t know which button invoked the function. Button Group Quick Demo Copyright C. S. Tritt, Ph.D. 5

Axes One or more axes can be included in a GUIDE created GUI interface. If only one is included, all graphics related functions like plot and image refer to it. If more than one axes is included, each should have an unique tag to provide a corresponding value in the handles structure by which it can be referred to. See AxisTest for an example. 16 Axis, Axes and Set/Get Axis is a function (with command syntax) that controls the appearance of the current axis or specified axis. Axes is a function that creates a new axis or makes a specified axis the current axis. It can also be used to change axis properties. Get and set are functions that retrieve or change the properties of the specified axis. 17 Copyright C. S. Tritt, Ph.D. 6