- Tips for accelerating Matlab performance
- Faster csvwrite/dlmwrite
- Runtime code instrumentation
- Advanced Matlab online webinars
- Matlab GUI training seminars – Zurich, 29-30 August 2017
- Sending HTML emails from Matlab
- User-defined tab completions – take 2
- Matlab Expo – Bern, 22 June 2017
- Matlab compilation quirks – take 2
- GUI formatting using HTML
- MathWorks-solicited Java survey
- I am hiring experienced Matlab programmers (Tel Aviv)
- Additional license data
- Parsing XML strings
- Quirks with parfor vs. for
- Desktop (41)
- Figure window (46)
- Guest bloggers (59)
- GUI (145)
- Handle graphics (75)
- Hidden property (40)
- Icons (7)
- Java (162)
- Listeners (20)
- Memory (15)
- Mex (12)
- Presumed future risk (356)
- Public presentation (6)
- Semi-documented feature (9)
- Semi-documented function (33)
- Stock Matlab function (132)
- Toolbox (7)
- UI controls (48)
- Uncategorized (13)
- Undocumented feature (189)
- Undocumented function (36)
TagsActiveX AppDesigner Callbacks COM Compiler Desktop Donn Shull Editor Figure FindJObj GUI GUIDE Handle graphics HG2 Hidden property HTML Icons Internal component Java JavaFrame JIDE JMI Listener Malcolm Lidierth MCOS Memory Menubar Mex Optical illusion Performance Profiler Pure Matlab schema schema.class schema.prop scribe Semi-documented function Toolbar uicontrol UIInspect uitable uitools Undocumented feature Undocumented function Undocumented property
- Yair Altman (3 hours 21 minutes ago): @Paul – you can check each node’s SelectionState property value, and you can compare it to com.mathworks.mwswing.checkbox tree.SelectionState.SELECTED, .NOT_SELECTED...
- Yair Altman (3 hours 41 minutes ago): @Collin – I’ll be happy to assist you by spending time to investigate this for you, but I would naturally expect to be compensated for my time and expertise. Email...
- Collin (12 hours 3 minutes ago): Yair, Excellent advice as always. I’m attempting to incorporate a breadcrumb bar into a GUI. After failing to get JIDE’s (com.jidesoft.navigation.Bread crumbBar) to work,...
- Yair Altman (17 hours 14 minutes ago): @Sharavan – yes, as long as you place the code in a Matlab s-function. The syntax should be the same as that shown on this blog.
- Paul M. (1 day 16 hours ago): Excellent tutorial, I am using the Matlab built in class (com.mathworks.mwswing.checkbo xtree.CheckBoxTree), how do I get a list of which nodes have the check box marked? If I use:...
- Thommy (2 days 2 hours ago): Thank you mate, I’ve passed quite some time on that issue. You made my day !
- sharavan (2 days 19 hours ago): Hello Yair, Thanks for the brilliant article. Will I be able to call Java extensions from S Functions from Simulink. A very small example would help a lot. Best Regards Sharavan
- Yair Altman (9 days 17 hours ago): @Zach – a slider that only fires when you release the drag handle is the default documented way that Matlab’s slider works. My post is only relevant if you want...
- Zach Mauch (10 days 12 hours ago): I’m using the java slider in a GUI, but I’m getting some weird behavior as I actively slide. I added an edit box to populate the index into for the user. It populates...
- Yair Altman (11 days 10 hours ago): @Saket – thanks for sharing, useful indeed
- Yair Altman (11 days 10 hours ago): @Michal – when you say that something “does not work at all” you provide zero information about what you tried to do and what happened. If you expect me to...
- Michal Kvasnicka (12 days 19 hours ago): @Yair Undocumented functionality (first code box) does not work at all (R2017b)!!! I always got null result. Any workaround?
- Saket (17 days 2 hours ago): @Andrew, @Yair – Try out the Mex Version of CSV Reader from Stanislaw Adaszewski. http://adared.ch/efficient-csv -reader-for-matlab/ You might need to modify the C – Code...
- Mark Whitfield (17 days 16 hours ago): Thank you.
- Michal Kvasnicka (18 days 0 hours ago): @Yair – thanks for very interesting post! Any examples how to read/write HUGE text files (CSV) by fread+textscan in chunks?
Search Results for: gui180 relevant articles found:
I last week’s post, Setting status-bar text, I showed how to set the status-bar text in Matlab figures and the main desktop. But Matlab status-bars are Java containers in which we can add GUI controls, not just simple text labels. In this post I will show how to do this for Matlab 7 figures. Let’s return to the two alternatives I’ve presented in my previous post for setting a Matlab 7 figure status-bar text: % Alternative #1 (… Continue reading
Three years ago, I wrote an article about modifying Matlab’s look-and-feel (L&F, or LnF), using Java’s built-in support for replaceable LnFs. To date, that article has 27 comments by 13 different commenters (plus 20 responses by me), making it the second most active article on this website. I decided to follow up on that article with a demo that shows the effects that different L&Fs have on GUI controls, and a demonstration… Continue reading
One of my consulting clients approached me yesterday with a mystery: In his GUIDE-generated GUI, one of the buttons had a bluish tint, and no obvious property seemed to control this or to differentiate it from its sibling controls. Here’s a parred-down version of his GUI: Highlighted GUI button So while it was very nice to have a highlighted button in this manner, the fact that he did not know why it happened and how to control it was a bi… Continue reading
…javax.swing.text.html.HTMLEditorKit); % alternative: jEditbox.setContentType(‘text/html’); htmlStr = ['<b><div style="font-family:impact;color:green">’… ‘Matlab</div></b> GUI is <i>’ … ‘<font color="red">highly</font></i> customizable’]; jEditbox.setText(htmlStr) HTML contents in a Matlab editbox Let’s show another usage exampl… Continue reading
When presenting information visually in graphical user interfaces (GUIs), we often need to present and enable interaction with state data (such as On/Off). In most cases, we would naturally use a checkbox to present the information and enable interaction. But What can we do if the data has three possible states. For example, Yes/No/Maybe, or: Full/Empty/Partial, or: Up/Down/Undetermined ? Until today, Matlab GUIs had to resort to using drop-down… Continue reading
Last week, I explained how a browser control can be integrated in Matlab GUI applications. Sometimes we only need to display simple HTML, for which a full browser seems like overkill. Moreover, we may wish to edit the displayed contents, which cannot be done using the browser control. The solution is to use a standard Java Swing JEditorPane control, which is an editable HTML-aware control. Oddly enough, it was only yesterday that Mikhail, a know… Continue reading
…underlying problem description is easy: we wish to have the ability to split a Matlab uipanel into two or more sub-panels, separated by a draggable horizontal/vertical divider. Such split-panes are standard in any semi-decent GUI, but for some reason were never incorporated in official Matlab. This is a real pity, but not to worry as there are at least two alternatives we could use: UISplitPane UISplitPane is a utility that I wrote back in 2009 t… Continue reading
…yboard shortcuts/accelerators, font colors/styles, callbacks, icons etc. (details1, details2) Control figure docking in compiled (deployed) applications (details1, details2) Display an integral figure status-bar with text and GUI controls (details1, details2). A few other features that I will not discuss here As you can see, there are numerous very interesting customizations that can be done to Matlab figures which rely on the undocumented imple… Continue reading
…oints’ FontSize: 10 Matlab’s uisetfont dialog The main drawback of uisetfont is the fact that it displays a separate non-resizable modal dialog window. We cannot embed uisetfont within our own panel, integrated in our GUI figure. DesktopFontPicker DesktopFontPicker is a Swing component that presents a font selection panel that can easily be inserted into any Matlab GUI container (figure, panel or tab) using the javacomponent function: fo… Continue reading
An aspect of Matlab GUIs that include Java components that is often encountered (most recently reported yesterday) and is easily fixed, is Matlab’s default exclusion of all javacomponents from its focus traversal cycle. This means that if we place several uicontrols and javacomponents together onscreen, clicking TAB or Shift-TAB will only move the focus between the regular uicontrols, but none of the javacomponents. The javacomponents can… Continue reading