ENG 6 Lecture Notes - Lecture 13: Matlab, Dialog Box, Font

44 views2 pages

Document Summary

Input from peripherals: getting data from hardware. Input and output and graphical user interfaces (guis) Importing data from files: video: http://www. mathworks. com/support/2010a/matlab/7. 10/demos/importing- data-from-files-matlab-video. html. Menus: use matlab to create graphical menu, user can click on selection (instead of using input statement, function menu generates menu of choices, choice = menu( mtitle , opt1 , opt2 , , optn ) Menu opens in a modal dialog box, returns number of selected item. Paradigm shift with guis: previously, programs ran in order, top to bottom, with guis, its more event driven. Function for each event (button being pressed, text being entered) Never know order functions will be executed. Gui: type guide in workspace, gui editor will pop up, choose blank gui . You ll see a grid, with buttons on the left. Next, click on green play button to program logic behind interface: after programming, saves a . fig and . file, to edit interface, type guide into workspace and choose open existing gui .

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents