Search Results for: gui

212 relevant articles found:

Solving a Matlab hang problem

…nity to explain the problem and the workaround, before my senility takes over and I forget again… The symptom – Matlab hangs The symptom is easily detectable: you’re happily working on your favorite Matlab GUI application, when suddenly some modal dialog window appears – perhaps a msgbox, a questdlg or an inputdlg. After clicking the <OK> button, Matlab seems to freeze, and any attempt to close the window or to sto… Continue reading

Categories: GUI, Low risk of breaking in future versions, Undocumented feature
Tags: , , ,
21 Comments

Waterloo graphics

…for example to create graphical insets. Multi-layered graphs, with each layer having independent axes. Figure 2: A multi-layered graph. Each plot has its own graph layer with independent axes. Built-in mouse interactivity and GUIs for interactive plot editing. Figure 3: A plot editor for a single-layered graph. Java programmers might note here the use of a few custom-designed Swing widgets: a dial that subclasses JSlider and supports multiple-tur… Continue reading

Categories: Guest bloggers, GUI, Java, Medium risk of breaking in future versions
Tags: , , , ,
38 Comments

GUI automation using a Robot

I would like to welcome guest writer Takeshi (Kesh) Ikuma. Kesh has posted several interesting utilities on the Matlab File Exchange, including the award-winning Enhanced Input Dialog Box. Today, Kesh will describe how we can automate GUI actions programmatically. Automating GUI actions, including controlling a mouse and keyboard programmatically, is often useful. This can be used, for example, to demonstrate GUI usage or to perform a recorded… Continue reading

Categories: Figure window, Guest bloggers, GUI, Java, Low risk of breaking in future versions
Tags: , ,
24 Comments

Customizing uitree nodes – part 2

In my previous posts I have shown how Matlab’s semi-documented uitree and uitreenode functions can be used to display hierarchical (tree) control in Matlab GUI. Today I conclude this mini-series by answering a reader’s request to show how checkboxes, radio buttons and other similar controls can be attached to tree nodes. There are actually several ways this can be done: Matlab icon control The simplest is to create two icons (checked… Continue reading

Categories: GUI, Java, Medium risk of breaking in future versions, Semi-documented function
Tags: , , , ,
47 Comments

Color selection components

A couple of weeks ago, a reader of this website requested an article about color-selection components. So Ed – this one’s for you Matlab includes a fully-documented uisetcolor function to enable color selection. uisetcolor uses a modal dialog window for this. To integrate this color-selection dialog in our GUI, simply add a uicontrol button or a menu item that call uisetcolor in their callback function. An example of such an integr… Continue reading

Categories: GUI, Java, Medium risk of breaking in future versions, Undocumented feature
Tags: , , ,
8 Comments

GUI automation utilities

Once again, I welcome guest writer Takeshi (Kesh) Ikuma. Last week, Kesh described how Java’s Robot class can be used to automate Matlab GUI. Today, Kesh will describe two Matlab utilities that help this automation process. jMouseEmu and inputEmu are both available on the Matlab File Exchange. There is a large overlap between these utilities. As their name suggests, jMouseEmu is geared to control the mouse, while inputEmu emulates both mo… Continue reading

Categories: Figure window, Guest bloggers, GUI, Java, Low risk of breaking in future versions
Tags: , ,
7 Comments

Date selection components

Have you ever wondered why Matlab does not have standard GUI date-handling components? Matlab has many built-in date-handling functions (calendar, date, datestr, datenum, datetick, datevec etc.). Unfortunately, this built-in support does not extend to Matlab GUI. If we need a date-selection drop-down or calendar panel we have to design it ourselves, or use a third-party Java component or ActiveX control. JIDE Components Luckily, we have a much… Continue reading

Categories: GUI, Java, Medium risk of breaking in future versions, Undocumented feature
Tags: , , , , ,
53 Comments

Advanced Matlab seminars – London, 10-14 March 2014

Advanced Matlab training courses/seminars will be held in London, March 10-14, 2014. Two separate courses will be held: Advanced Matlab Programming – 2 days (March 10-11), including best practices, preparing professional reports, writing professional code and performance tuning. US$1199 Advanced Matlab Visualization & GUI – 3 days (March 12-14), including advanced visualization and GUI techniques. US$1799 Enroll to both courses… Continue reading

Comments Off

Animated busy (spinning) icon

Matlab includes a wide variety of internal widgets (GUI components) that could be very useful in our GUIs. One such widget is an animated spinning icon, which is often used by Matlab itself and numerous toolboxes to illustrate a running task: Sample usage of an animated spinning icon One of the internal widgets that are readily-available for use in our Matlab GUI and displays a similar (but not identical) spinning icon is BusyAffordance, which i… Continue reading

Categories: GUI, High risk of breaking in future versions, Java, Undocumented feature
Tags: , , ,
27 Comments

Uitable sorting

uitable is probably the most complex basic GUI controls available in Matlab. It displays data in a table within a figure, with settable properties as with any other Matlab Handle-Graphics (HG) control. After many years in which the uitable was available but semi-documented and not officially supported in Matlab, it finally became fully documented and supported in R2008a (aka Matlab 7.6). At that time its internal implementation has changed from… Continue reading

Categories: GUI, Handle graphics, Hidden property, High risk of breaking in future versions, Java, Semi-documented function, Stock Matlab function, Undocumented feature
Tags: , , , , , , , , ,
21 Comments