Accessing the Matlab Editor
The Matlab Editor can be accessed programmatically, for a wide variety of possible uses – this article shows how.
Updating speaker sound volume
Matlab enables setting the speaker volume via documented Java calls
Performance: scatter vs. line
In many circumstances, the line function can generate visually-identical plots as the scatter function, much faster
Undocumented scatter plot behavior
The scatter plot function has an undocumented behavior when plotting more than 100 points: it returns a single unified patch object handle, rather than a patch handle for each specific point as it returns with 100 or less points.
uicontrol side-effect: removing figure toolbar
Matlab’s built-in uicontrol function has a side-effect of removing the figure toolbar. This was undocumented until lately. This article describes the side-effect behavior and how to fix it.
Undocumented mouse pointer functions
Matlab contains several well-documented functions and properties for the mouse pointer. However, some very-useful functions have remained undocumented and unsupported. This post details their usage.
Detecting window focus events
Matlab does not have any documented method to detect window focus events (gain/loss). This article describes an undocumented way to detect such events.
R2009b keyboard bindings
The new Matlab release R2009b includes the ability to customize keyboard bindings for the editor and Command Window. However, there are still some uses for the EditorMacro utility and its variants.
Figure toolbar customizations
Matlab’s toolbars can be customized using a combination of undocumented Matlab and Java hacks. This article describes how to customize the Matlab figure toolbar.
Figure toolbar components
Matlab’s toolbars can be customized using a combination of undocumented Matlab and Java hacks. This article describes how to access existing toolbar icons and how to add non-button toolbar components.
EditorMacro v2 – setting Command Window key-bindings
The EditorMacro utility was extended to support built-in Matlab Editor and Command-Window actions and key-bindings. This post describes the changes and the implementation details.
Setting listbox mouse actions
Matlab listbox uicontrol can be modified to detect mouse events for right-click context menus, dynamic tooltips etc.
Context-Sensitive Help
Matlab has a hidden/unsupported built-in mechanism for easy implementation of context-sensitive help
Setting status-bar components
Matlab status-bars are Java containers in which we can add GUI controls such as progress-bars, not just simple text labels
Setting status-bar text
The Matlab desktop and figure windows have a usable statusbar which can only be set using undocumented methods. This post shows how to set the status-bar text.
Non-textual editor actions
The UIINSPECT utility can be used to expand EditorMacro capabilities to non-text-insertion actions. This is how:
BlinkDagger – the end?
In his latest post on BlinkDagger, Quan Quach announced that the BlinkDagger blog will be frozen following co-author Daniel Sutoyo’s hiring by The MathWorks and the continuous strain of maintaining the blog single-handedly. This is sad news indeed for the Matlab user community. Over the past few years, BlinkDagger has
EditorMacro – assign a keyboard macro in the Matlab editor
EditorMacro is a new utility that enables setting keyboard macros in the Matlab editor. this post details its inner workings.
Setting the Matlab desktop layout programmatically
The Matlab desktop enables saving and switching layouts using the main menu. This post shows how to do so programmatically.
Changing system preferences programmatically
Matlab user/system preferences can be changed programmatically, from within your Matlab application or from the Matlab desktop command prompt. This post details how.
GUIDE customization
Matlab’s GUI Design Editor (GUIDE) has several interesting undocumented features. This post describes how to customize GUIDE rulers.
Legend '-DynamicLegend' semi-documented feature
The built-in Matlab legend function has a very useful semi-documented feature for automatic dynamic update, which is explained here.
Spicing up Matlab uicontrol tooltips
Matlab uicontrol tooltips can be spiced-up using HTML and CSS, including fonts, colors, tables and images
tic / toc – undocumented option
Matlab’s built-in tic/toc functions have an undocumented option enabling multiple nested clockings
cprintf – display formatted color text in the Command Window
cprintf is a utility that utilized undocumented Matlab desktop functionalities to display color and underline-styled formatted text in the Command Window