Undocumented Matlab
  • SERVICES
    • Consulting
    • Development
    • Training
    • Gallery
    • Testimonials
  • PRODUCTS
    • IQML: IQFeed-Matlab connector
    • IB-Matlab: InteractiveBrokers-Matlab connector
    • EODML: EODHistoricalData-Matlab connector
    • Webinars
  • BOOKS
    • Secrets of MATLAB-Java Programming
    • Accelerating MATLAB Performance
    • MATLAB Succinctly
  • ARTICLES
  • ABOUT
    • Policies
  • CONTACT
  • SERVICES
    • Consulting
    • Development
    • Training
    • Gallery
    • Testimonials
  • PRODUCTS
    • IQML: IQFeed-Matlab connector
    • IB-Matlab: InteractiveBrokers-Matlab connector
    • EODML: EODHistoricalData-Matlab connector
    • Webinars
  • BOOKS
    • Secrets of MATLAB-Java Programming
    • Accelerating MATLAB Performance
    • MATLAB Succinctly
  • ARTICLES
  • ABOUT
    • Policies
  • CONTACT
Technical articles

Technical articles

JMI – Java-to-Matlab Interface

JMI enables calling Matlab functions from within Java. This article explains JMI’s core functionality.

Read More »
April 14, 2010 25 Comments

Image Easter egg

The default image presented by Matlab’s image function has a very interesting undocumented story.

Read More »
April 6, 2010 2 Comments

Plot LimInclude properties

The plot objects’ XLimInclude, YLimInclude, ZLimInclude, ALimInclude and CLimInclude properties are an important feature, that has both functional and performance implications.

Read More »
March 31, 2010 9 Comments

Axes LooseInset property

Matlab plot axes have an undocumented LooseInset property that sets empty margins around the axes, and can be set to provide a tighter fit of the axes to their surroundings.

Read More »
March 24, 2010 21 Comments

Plot LineSmoothing property

LineSmoothing is a hidden and undocumented plot line property that creates anti-aliased (smooth unpixelized) lines in Matlab plots

Read More »
March 17, 2010 34 Comments

Matlab and the Event Dispatch Thread (EDT)

The Java Swing Event Dispatch Thread (EDT) is very important for Matlab GUI timings. This article explains the potential pitfalls and their avoidance using undocumented Matlab functionality.

Read More »
March 10, 2010 40 Comments

Setting desktop tab completions

The Matlab desktop’s Command-Window tab-completion can be customized for user-defined functions

Read More »
March 3, 2010 37 Comments

Inactive Control Tooltips & Event Chaining

Inactive Matlab uicontrols cannot normally display their tooltips. This article shows how to do this with a combination of undocumented Matlab and Java hacks.

Read More »
February 24, 2010 8 Comments

Additional uicontrol tooltip hacks

Matlab’s uicontrol tooltips have several limitations that can be overcome using the control’s underlying Java object.

Read More »
February 17, 2010 7 Comments

Continuous slider callback

Matlab slider uicontrols do not enable a continuous-motion callback by default. This article explains how this can be achieved using undocumented features.

Read More »
February 8, 2010 56 Comments

Solving a MATLAB bug by subclassing

Matlab’s Image Processing Toolbox’s impoint function contains an annoying bug that can be fixed using some undocumented properties.

Read More »
February 7, 2010 4 Comments

Customizing listbox & editbox scrollbars

Matlab listbox and multi-line editbox uicontrols have pre-configured scrollbars. This article shows how they can be customized.

Read More »
February 1, 2010 50 Comments

setPrompt – Setting the Matlab Desktop prompt

The Matlab Desktop’s Command-Window prompt can easily be modified using some undocumented features

Read More »
January 25, 2010 15 Comments

Rich Matlab editbox contents

The Matlab editbox uicontrol does not handle HTML contents as do other uicontrols. In this article I show how this limitation can be removed.

Read More »
January 20, 2010 51 Comments

FindJObj GUI – display container hierarchy

The FindJObj utility can be used to present a GUI that displays a Matlab container’s internal Java components, properties and callbacks.

Read More »
January 12, 2010 7 Comments

FindJObj – find a Matlab component's underlying Java object

The FindJObj utility can be used to access and display the internal components of Matlab controls and containers. This article explains its uses and inner mechanism.

Read More »
January 6, 2010 69 Comments

Customizing Matlab's Workspace table

The Matlab Desktop’s Workspace pane table can be customized, as described here

Read More »
January 2, 2010 19 Comments

GUI integrated HTML panel

Simple HTML can be presented in a Java component integrated in Matlab GUI, without requiring the heavy browser control.

Read More »
December 15, 2009 3 Comments

GUI integrated browser control

A fully-capable browser component is included in Matlab and can easily be incorporated in regular Matlab GUI applications. This article shows how.

Read More »
December 9, 2009 44 Comments

Customizing help popup contents

The built-in HelpPopup, available since Matlab R2007b, has a back-door that enables displaying arbitrary text, HTML and URL web-pages.

Read More »
November 30, 2009 9 Comments

Customizing print setup

Matlab figures print-setup can be customized to automatically prepare the figure for printing in a specific configuration

Read More »
November 25, 2009 9 Comments

Undocumented XML functionality

Matlab’s built-in XML-processing functions have several undocumented features that can be used by Java-savvy users

Read More »
November 18, 2009 6 Comments

Customizing Matlab labels

Matlab’s text uicontrol is not very customizable, and does not support HTML or Tex formatting. This article shows how to display HTML labels in Matlab and some undocumented customizations

Read More »
November 11, 2009 12 Comments

Customizing uiundo

This article describes how Matlab’s undocumented uiundo undo/redo manager can be customized

Read More »
November 4, 2009 9 Comments

uiundo – Matlab's undocumented undo/redo manager

The built-in uiundo function provides easy yet undocumented access to Matlab’s powerful undo/redo functionality. This article explains its usage.

Read More »
October 29, 2009 2 Comments
Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10 Page11 Page12 Page13 Page14 Page15 Page16 Page17
Print This Page Print This Page
Useful links
  •  Email Yair Altman
  •  Subscribe to new posts (email)
  •  Subscribe to new posts (feed)
  •  Subscribe to new posts (reader)
  •  Subscribe to comments (feed)
 
Accelerating MATLAB Performance book
Recent Posts

Speeding-up builtin Matlab functions – part 3

Improving graphics interactivity

Interesting Matlab puzzle – analysis

Interesting Matlab puzzle

Undocumented plot marker types

Matlab toolstrip – part 9 (popup figures)

Matlab toolstrip – part 8 (galleries)

Matlab toolstrip – part 7 (selection controls)

Matlab toolstrip – part 6 (complex controls)

Matlab toolstrip – part 5 (icons)

Matlab toolstrip – part 4 (control customization)

Reverting axes controls in figure toolbar

Matlab toolstrip – part 3 (basic customization)

Matlab toolstrip – part 2 (ToolGroup App)

Matlab toolstrip – part 1

Categories
  • Desktop (45)
  • Figure window (59)
  • Guest bloggers (65)
  • GUI (165)
  • Handle graphics (84)
  • Hidden property (42)
  • Icons (15)
  • Java (174)
  • Listeners (22)
  • Memory (16)
  • Mex (13)
  • Presumed future risk (394)
    • High risk of breaking in future versions (100)
    • Low risk of breaking in future versions (160)
    • Medium risk of breaking in future versions (136)
  • Public presentation (6)
  • Semi-documented feature (10)
  • Semi-documented function (35)
  • Stock Matlab function (140)
  • Toolbox (10)
  • UI controls (52)
  • Uncategorized (13)
  • Undocumented feature (217)
  • Undocumented function (37)
Tags
ActiveX (6) AppDesigner (9) Callbacks (31) Compiler (10) Desktop (38) Donn Shull (10) Editor (8) Figure (19) FindJObj (27) GUI (141) GUIDE (8) Handle graphics (78) HG2 (34) Hidden property (51) HTML (26) Icons (9) Internal component (39) Java (178) JavaFrame (20) JIDE (19) JMI (8) Listener (17) Malcolm Lidierth (8) MCOS (11) Memory (13) Menubar (9) Mex (14) Optical illusion (11) Performance (78) Profiler (9) Pure Matlab (187) schema (7) schema.class (8) schema.prop (18) Semi-documented feature (6) Semi-documented function (33) Toolbar (14) Toolstrip (13) uicontrol (37) uifigure (8) UIInspect (12) uitools (20) Undocumented feature (187) Undocumented function (37) Undocumented property (20)
Recent Comments
  • Yair Altman (6 days 7 hours ago): You can try to increase the Java heap memory size in the Matlab preferences (General => Java Heap Memory). Any changes to the settings will only take effect after restarting...
  • Thomas (6 days 8 hours ago): Hello, thanks for sharing! I currently receive the following memory error message when using savezip with a big object (Matlab R2020b, Windows 10). Error using...
  • Yair Altman (9 days 16 hours ago): Yerlan – either use menuItem1.setEnabled(0) or set(menuItem1,'Enabled',0)
  • Manzn (9 days 18 hours ago): Thank you man! you saved me, when there was no more light 😀
  • Yerlan (10 days 23 hours ago): Hello Mr. Altman, how can I disable menu items in the context menu? E.g. when I am trying to do this: menuItems = jmenu.getSubElements; menuItem1 = menuItems(1);...
  • Yair Altman (11 days 15 hours ago): Thanks for the note Eric – you forgot the crucial call to jTable.setLabelTable(labelTabl e) – I added it into your code snippet above.
  • Erik (13 days 3 hours ago): Thank you for this — I don’t know if this has been mentioned anywhere else before, but it could be useful to mention how to add custom labels to a jslider. I did the...
  • turhv (25 days 21 hours ago): very nice! work perfectly to me in MATLAB 2019a. thanks!!!
  • Jianfei (59 days 1 hour ago): I have tried the MathWorks CheckBoxList in Matlab 2015b. For whatever the reason, I can’t change the font properties. I can change the font color, but changing font properties...
  • Donato Coppola (64 days 20 hours ago): Hi Yair, I have a problem with the double format. When I run the treeTable function, the numbers in double format cells are displayed with comma as decimal separator. How can...
  • Kim (70 days 10 hours ago): Yair, the following didn’t work for me either: jh.setBorderPainted(false); Regards, Kim
  • Adil (72 days 12 hours ago): Thank you for the blog, it was useful for me. I have a file named App_project.mlapp.zip and when I extract it through Winzip it gives all the files exactly as you described above. I...
  • Mr Ashley Trowell (74 days 21 hours ago): Thank you so much for this analysis. Also, I find it somewhat horrifying. The take away seems to be to use && / || and NOT and / or. Thanks a bunch! ~Ashley
  • Matt (79 days 23 hours ago): Late reply I know, but you can call custom shortcuts with alt-#. Hold down Alt to see what number is assigned to the shortcuts you’ve created. Now if there was a way to create a...
  • James (87 days 18 hours ago): Is there a way to change the location of the window? They pop up at random locations and the user has to chase them down.
Contact us
Undocumented Matlab © 2009 - Yair Altman
Scroll to top