ENG 6 Lecture Notes - Lecture 13: Matlab, Dialog Box, Font
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 .