graphical user interface with Matlab: A Tutorial 1. intro * Matlab GUI vs others * Similar to RAD much(prenominal) as C++ detergent builder and VB * Most GUI pull in across curriculums * scum bag perform most functions as traditional GUI by tricks * Can link program certified code utilize MEX programs * Problems with GUI * Not as flexible * Cross computer program appearance may not be the same * ofttimes must(prenominal) use tricks and unfriendly techniques * MEX code GUI eliminates cross platform operation 2. GUI elements * GUI elements are treated as objects. They capsule data and method. * Menu: uimenu * Controls: push clit, check cuff, radio vents, school text (static), slider (scroll bar), ignore (interactive), listbox, goupmenu, frame : u mental picturetrol * Graphics: darns, text, axis, image, surface, shading : axes, image, line, patch, surface, text, airy * Others: almost all glaring elements on screen keep out command window : e.g., msgbox 3. conclusion out more almost GUI elements * Use help desk * launch default electronic network browser, usually Netscape * enter help desk from matlab prompt.
Click on finagle graphics objects * Experiment with properties * model: create a plot and enter set(gcf),pause,set(gca) * get and certifys the properties, set can set and show * Try guide, cbedit, toolpal, aligntool; beloved for simple GUI propagation * guide is the mother of all t ools 4. Simplest GUI: message box * ! Simple syntax: msgbox(message, deed of conveyance,modal or nonmodal) * Used to obliterate up a dialog box with Ok button on it * Message and deed are strings; title is optional, default is nonmodal * For example, msgbox(I am afraid I CAN do that, Mik.) * Other types of message boxes are * errordlg(message,title,modal or nonmodal): msgbox with error icon * warndlg(message,title,modal or nonmodal): msgbox with specimen icon 5. Simpler GUI: input box...If you take to get a unspoiled essay, order it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.