ENG 06: Engineering Problem Solving with MATLAB – Lecture 13 notes

2 Pages
116 Views
Unlock Document

Department
Engineering
Course
ENG 6
Professor
Professor Rajeevan Amirtharajah
Semester
Spring

Description
ENG 06 – Lecture 13; 2/19/2013 MATLAB Input/Output to Peripherals  Input from peripherals o Getting data from hardware Input and Output and Graphical User Interfaces (GUIs)  Importing Data From Files o Video: http://www.mathworks.com/support/2010a/matlab/7.10/demos/importing- data-from-files-matlab-video.html  Menus o Use MATLAB to create graphical menu o User can click on selection (instead of using input statement) o Function menu generates menu of choices o Choice = menu(„mtitle‟,‟opt1‟,‟opt2‟,…,‟optn‟)  Title of menu is mtitle  Choices are string variables „optn‟  Menu opens in a modal dialog box, returns number of selected item  Paradigm Shift with GUIs o Previously, programs ran in order, top to bottom o With GUIs, its more event driven  Function for each event (button being pressed, text being entered)  Never know order functions will be executed  GUI o Type guide in workspace, GUI editor will pop up o Choose “blank GUI”  You‟ll see a grid, with buttons on the left  Click and drag buttons onto grid  First design aesthetics  Next, click on green play button to program logic behind interface o After programming, saves a .fig and .file o To edit interface, type guide into workspace and choose „open existing GUI‟  Properties of Objects o Every time you drag another thing to interface, you create a new object  Can be button, text box (editable or unchanging), graph, radio buttons,etc o Each object has pro
More Less

Related notes for ENG 6

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit