graphical user interface with Matlab: A Tutorial 1. intromission * Matlab GUI vs others * Similar to RAD much(prenominal) as C++ builder and VB * Most GUI pull in across curriculums * elicit perform most functions as traditional GUI by dint of tricks * Can link program certified code use MEX programs * Problems with GUI * Not as flexible * Cross course of study appearance may not be the same * much must(prenominal) use tricks and unfriendly techniques * MEX code GUI eliminates cross computer programme operation 2. GUI elements * GUI elements are treated as objects. They capsule data and method. * Menu: uimenu * Controls: push clit, check recess, radio discharges, schoolbook (static), slider (scroll bar), ignore (interactive), listbox, goupmenu, frame : u motion picturetrol * Graphics: plot of lands, text, axis, image, surface, shading : axes, image, lin e, patch, surface, text, wild * Others: almost all glaring elements on screen leave out command window : e.g., msgbox 3. conclusion out more intimately GUI elements * Use help desk * launch default mesh browser, usually Netscape * enter help desk from matlab prompt.
Click on regale graphics objects * Experiment with properties * model: create a plot and enter set(gcf),pause,set(gca) * get and fork outs the properties, set can set and show * Try guide, cbedit, toolpal, aligntool; beloved for simple GUI generation * guide is the mother of all tools 4. Simple st GUI: message box * Simple syntax: ms! gbox(message, deed of conveyance,modal or nonmodal) * Used to pop music up a dialog box with Ok button on it * Message and appellation 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 need 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.