# Undocumented Matlab

Professional Matlab consulting, development and training

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Speeding-up builtin Matlab functions - part 3

DevFeed: [Speeding-up builtin Matlab functions - part 3](<https://devfeed.tech/articles/speeding-up-builtin-matlab-functions-part-3-22327.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/speeding-up-builtin-matlab-functions-part-3>)

Author: Yair Altman

Published: 2020-04-06T20:44:07Z

Content type: article

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>)

Tags: [data-mesh](<https://devfeed.tech/tags/data-mesh.md>), [functions](<https://devfeed.tech/tags/functions.md>), [low-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/low-risk-of-breaking-in-future-versions.md>), [low-risk-of-breaking-in-future-versions-stock-matlab-function-toolbox](<https://devfeed.tech/tags/low-risk-of-breaking-in-future-versions-stock-matlab-function-toolbox.md>), [matlab](<https://devfeed.tech/tags/matlab.md>), [optimized](<https://devfeed.tech/tags/optimized.md>), [pdf](<https://devfeed.tech/tags/pdf.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pure-matlab](<https://devfeed.tech/tags/pure-matlab.md>), [statistics](<https://devfeed.tech/tags/statistics.md>), [stock-matlab-function](<https://devfeed.tech/tags/stock-matlab-function.md>), [toolbox](<https://devfeed.tech/tags/toolbox.md>)

### AI overview

For a 1024x1024 probability-density mesh, the author reduced `mvksdensity` runtime from 76 to 13 seconds (about 6x) without compromising accuracy. The method is to profile and modify local copies of the needed MATLAB internal files rather than alter installed files: copy and rename `mvksdensity.m`, then copy and rename dependencies such as `statkscompute.m` and `statkskernelinfo.m`, updating function calls until the code runs. The excerpt says to compare numeric results with the built-in function as a correctness check. Reproducing the example requires MATLAB R2016a or newer and the Statistics Toolbox.

### Source excerpt

Built-in Matlab functions can often be profiled and optimized for improved run-time performance. This article shows a typical example. The post Speeding-up builtin Matlab functions - part 3 appeared first on Undocumented Matlab. Related posts: Speeding-up builtin Matlab functions - part 2 Built-in Matlab functions can often be profiled and optimized for improved run-time performance. This article shows a typical example. ... Speeding-up builtin Matlab functions - part 1 Built-in Matlab functions can often be profiled and optimized for improved run-time performance. This article shows a typical example. ... Speeding up Matlab-JDBC SQL queries Fetching SQL ResultSet data from JDBC into Matlab can be made significantly faster. ... Callback functions performance Using anonymous functions in Matlab callbacks can be very painful for performance. Today's article explains how this can be avoided. ...

## Improving graphics interactivity

DevFeed: [Improving graphics interactivity](<https://devfeed.tech/articles/improving-graphics-interactivity-22319.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/improving-graphics-interactivity>)

Author: Yair Altman

Published: 2019-04-21T21:03:10Z

Content type: article

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [Graphics](<https://devfeed.tech/topics/graphics.md>), [GUI](<https://devfeed.tech/topics/gui.md>)

Tags: [behavior](<https://devfeed.tech/tags/behavior.md>), [control](<https://devfeed.tech/tags/control.md>), [engine](<https://devfeed.tech/tags/engine.md>), [events](<https://devfeed.tech/tags/events.md>), [figure](<https://devfeed.tech/tags/figure.md>), [function](<https://devfeed.tech/tags/function.md>), [functionality](<https://devfeed.tech/tags/functionality.md>), [graphics](<https://devfeed.tech/tags/graphics.md>), [gui](<https://devfeed.tech/tags/gui.md>), [gui-handle-graphics-medium-risk-of-breaking-in-future-versions-stock-matlab-function](<https://devfeed.tech/tags/gui-handle-graphics-medium-risk-of-breaking-in-future-versions-stock-matlab-function.md>), [handle-graphics](<https://devfeed.tech/tags/handle-graphics.md>), [matlab](<https://devfeed.tech/tags/matlab.md>), [medium-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/medium-risk-of-breaking-in-future-versions.md>), [mouse](<https://devfeed.tech/tags/mouse.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pure-matlab](<https://devfeed.tech/tags/pure-matlab.md>), [region](<https://devfeed.tech/tags/region.md>), [stock-matlab-function](<https://devfeed.tech/tags/stock-matlab-function.md>), [toolbar](<https://devfeed.tech/tags/toolbar.md>)

### AI overview

Matlab R2018b enables axes mouse interactions by default, but the author reports that built-in interactions can hurt performance when figures contain overlapping axes: enabled handlers, including DataTipInteraction's hover detection, process events for visible and non-visible axes. The author also finds RegionZoomInteraction more useful for many plot types than PanInteraction; zooming otherwise uses the mouse wheel, while panning remains possible by dragging the rulers. They describe replacing the default DataTipInteraction and PanInteraction when creating axes, including through a figure creation script. The supplied excerpt ends before the function code and test results, so it does not establish the size of any performance improvement.

### Source excerpt

Matlab R2018b added default axes mouse interactivity at the expense of performance. Luckily, we can speed-up the default axes. The post Improving graphics interactivity appeared first on Undocumented Matlab. Related posts: Undocumented HG2 graphics events Matlab's new HG2 graphics engine includes many new undocumented events that could be used in various ways. ... Handle Graphics Behavior HG behaviors are an important aspect of Matlab graphics that enable custom control of handle functionality. ... Improving save performance There are many different ways of improving Matlab's standard save function performance. ... Waterloo graphics Waterloo is an open-source library that can significantly improve Matlab GUI. ...

## Interesting Matlab puzzle - analysis

DevFeed: [Interesting Matlab puzzle - analysis](<https://devfeed.tech/articles/interesting-matlab-puzzle-analysis-22321.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/interesting-matlab-puzzle-analysis>)

Author: Yair Altman

Published: 2019-04-09T11:52:00Z

Content type: article

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [code](<https://devfeed.tech/tags/code.md>), [console](<https://devfeed.tech/tags/console.md>), [if-statement](<https://devfeed.tech/tags/if-statement.md>), [medium-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/medium-risk-of-breaking-in-future-versions.md>), [medium-risk-of-breaking-in-future-versions-undocumented-feature](<https://devfeed.tech/tags/medium-risk-of-breaking-in-future-versions-undocumented-feature.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [pure-matlab](<https://devfeed.tech/tags/pure-matlab.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [undocumented-feature](<https://devfeed.tech/tags/undocumented-feature.md>)

### AI overview

An analysis of a Matlab puzzle explains how a same-line expression after an if condition is parsed as a separate expression. The false branch is skipped, the else branch displays "Daba," and the potentially erroneous or function call is never evaluated.

### Source excerpt

Solution and analysis of a simple Matlab puzzle that leads to interesting insight on Matlab's parser. The post Interesting Matlab puzzle - analysis appeared first on Undocumented Matlab. Related posts: Interesting Matlab puzzle A simple Matlab puzzle that leads to interesting insight on Matlab's parser. ... An interesting uitree utility ExploreStruct is a utility that shows how custom uitrees can be integrated in Matlab GUI... A couple of internal Matlab bugs and workarounds A couple of undocumented Matlab bugs have simple workarounds. ... Matlab compiler bug and workaround Both the Matlab compiler and the publish function have errors when parsing block-comments in Matlab m-code. ...

## Interesting Matlab puzzle

DevFeed: [Interesting Matlab puzzle](<https://devfeed.tech/articles/interesting-matlab-puzzle-22320.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/interesting-matlab-puzzle>)

Author: Yair Altman

Published: 2019-03-31T10:15:06Z

Content type: opinion

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>), [Parser](<https://devfeed.tech/topics/parser.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [medium-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/medium-risk-of-breaking-in-future-versions.md>), [medium-risk-of-breaking-in-future-versions-undocumented-feature](<https://devfeed.tech/tags/medium-risk-of-breaking-in-future-versions-undocumented-feature.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [programming](<https://devfeed.tech/tags/programming.md>), [pure-matlab](<https://devfeed.tech/tags/pure-matlab.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [undocumented-feature](<https://devfeed.tech/tags/undocumented-feature.md>)

### AI overview

This article presents a Matlab code puzzle about conditional operators, evaluation behavior, operand order, and parentheses. It invites readers to predict and then run the code, highlighting how the results provide insight into Matlab's parser.

### Source excerpt

A simple Matlab puzzle that leads to interesting insight on Matlab's parser. The post Interesting Matlab puzzle appeared first on Undocumented Matlab. Related posts: Interesting Matlab puzzle - analysis Solution and analysis of a simple Matlab puzzle that leads to interesting insight on Matlab's parser. ... An interesting uitree utility ExploreStruct is a utility that shows how custom uitrees can be integrated in Matlab GUI... A couple of internal Matlab bugs and workarounds A couple of undocumented Matlab bugs have simple workarounds. ... Matlab DDE support Windows DDE is an unsupported and undocumented feature of Matlab, that can be used to improve the work-flow in the Windows environment...

## Undocumented plot marker types

DevFeed: [Undocumented plot marker types](<https://devfeed.tech/articles/undocumented-plot-marker-types-22328.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/undocumented-plot-marker-types>)

Author: Yair Altman

Published: 2019-03-13T11:05:14Z

Content type: article

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [plotting](<https://devfeed.tech/topics/plotting.md>), [Undocumented feature](<https://devfeed.tech/topics/undocumented-feature.md>)

Tags: [color](<https://devfeed.tech/tags/color.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [handle](<https://devfeed.tech/tags/handle.md>), [handle-graphics](<https://devfeed.tech/tags/handle-graphics.md>), [handle-graphics-hidden-property-low-risk-of-breaking-in-future-versions-stock-matlab-function-undocu](<https://devfeed.tech/tags/handle-graphics-hidden-property-low-risk-of-breaking-in-future-versions-stock-matlab-function-undocu.md>), [hg2](<https://devfeed.tech/tags/hg2.md>), [hidden](<https://devfeed.tech/tags/hidden.md>), [hidden-property](<https://devfeed.tech/tags/hidden-property.md>), [internal-component](<https://devfeed.tech/tags/internal-component.md>), [low-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/low-risk-of-breaking-in-future-versions.md>), [matlab](<https://devfeed.tech/tags/matlab.md>), [property](<https://devfeed.tech/tags/property.md>), [pure-matlab](<https://devfeed.tech/tags/pure-matlab.md>), [stock-matlab-function](<https://devfeed.tech/tags/stock-matlab-function.md>), [style](<https://devfeed.tech/tags/style.md>), [transparency](<https://devfeed.tech/tags/transparency.md>), [types](<https://devfeed.tech/tags/types.md>), [undocumented](<https://devfeed.tech/tags/undocumented.md>), [undocumented-feature](<https://devfeed.tech/tags/undocumented-feature.md>)

### AI overview

MATLAB plot-line markers have two low-level styles, `hbar` and `vbar`, that are absent from the usual top-level marker options. The article says they can be set through the line handle's hidden `MarkerHandle` property, which exposes an internal graphics object. That object also enables marker transparency and color gradients. These are undocumented features; the text attributes their absence from the top-level interface to a possible oversight during the HG2 graphics-engine transition, but presents that explanation as speculation.

### Source excerpt

Undocumented plot marker styles can easily be accesses using a hidden plot-line property. The post Undocumented plot marker types appeared first on Undocumented Matlab. Related posts: Types of undocumented Matlab aspects This article lists the different types of undocumented/unsupported/hidden aspects in Matlab... 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.... Plot markers transparency and color gradient Matlab plot-line markers can be customized to have transparency and color gradients. ... Undocumented scatter plot jitter Matlab's scatter plot can automatically jitter data to enable better visualization of distribution density. ...

## Matlab toolstrip - part 9 (popup figures)

DevFeed: [Matlab toolstrip - part 9 (popup figures)](<https://devfeed.tech/articles/matlab-toolstrip-part-9-popup-figures-22326.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/matlab-toolstrip-part-9-popup-figures>)

Author: Yair Altman

Published: 2019-02-10T17:00:10Z

Content type: tutorial

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [border](<https://devfeed.tech/tags/border.md>), [button](<https://devfeed.tech/tags/button.md>), [callback](<https://devfeed.tech/tags/callback.md>), [classes](<https://devfeed.tech/tags/classes.md>), [code](<https://devfeed.tech/tags/code.md>), [container](<https://devfeed.tech/tags/container.md>), [control](<https://devfeed.tech/tags/control.md>), [custom](<https://devfeed.tech/tags/custom.md>), [customizable](<https://devfeed.tech/tags/customizable.md>), [figure](<https://devfeed.tech/tags/figure.md>), [figure-window](<https://devfeed.tech/tags/figure-window.md>), [figure-window-gui-high-risk-of-breaking-in-future-versions-java-undocumented-feature](<https://devfeed.tech/tags/figure-window-gui-high-risk-of-breaking-in-future-versions-java-undocumented-feature.md>), [file](<https://devfeed.tech/tags/file.md>), [form](<https://devfeed.tech/tags/form.md>), [gallery](<https://devfeed.tech/tags/gallery.md>), [gui](<https://devfeed.tech/tags/gui.md>), [high-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/high-risk-of-breaking-in-future-versions.md>), [java](<https://devfeed.tech/tags/java.md>), [matlab](<https://devfeed.tech/tags/matlab.md>), [toolstrip](<https://devfeed.tech/tags/toolstrip.md>), [undocumented](<https://devfeed.tech/tags/undocumented.md>), [undocumented-feature](<https://devfeed.tech/tags/undocumented-feature.md>), [window](<https://devfeed.tech/tags/window.md>)

### AI overview

A toolstrip control can open a customizable popup built from a Matlab figure: create the figure, write a callback to initialize it and position it relative to the triggering control, then attach the callback. The figure should generally be modal and initially hidden. Only legacy Java-based figures made with GUIDE or figure are supported; web-based uifigure is not. The popup appears beneath the button but is an independent window with its own title bar, frame, and taskbar icon, and can be dragged. Hiding its frame can make it less obtrusive but prevents moving or resizing. The excerpt points to a Toolpack light-weight popup panel as a likely better alternative, to be covered in a later post.

### Source excerpt

Custom popup figures can be attached to Matlab GUI toolstrip controls. The post Matlab toolstrip - part 9 (popup figures) appeared first on Undocumented Matlab. Related posts: Matlab toolstrip - part 4 (control customization) Matlab toolstrip components (controls) can be customized in various ways, including user-defined callbacks. ... Matlab toolstrip - part 2 (ToolGroup App) Matlab users can create custom Apps with toolstrips and docked figures. ... Matlab toolstrip - part 8 (galleries) Matlab toolstrips can contain customizable gallery panels of items. ... Matlab toolstrip - part 5 (icons) Icons can be specified in various ways for toolstrip controls and the app window itself. ...

## Matlab toolstrip - part 8 (galleries)

DevFeed: [Matlab toolstrip - part 8 (galleries)](<https://devfeed.tech/articles/matlab-toolstrip-part-8-galleries-22325.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/matlab-toolstrip-part-8-galleries>)

Author: Yair Altman

Published: 2019-02-03T17:00:55Z

Content type: tutorial

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [customizable](<https://devfeed.tech/tags/customizable.md>), [figure](<https://devfeed.tech/tags/figure.md>), [figure-window](<https://devfeed.tech/tags/figure-window.md>), [figure-window-gui-high-risk-of-breaking-in-future-versions-undocumented-feature](<https://devfeed.tech/tags/figure-window-gui-high-risk-of-breaking-in-future-versions-undocumented-feature.md>), [gallery](<https://devfeed.tech/tags/gallery.md>), [gui](<https://devfeed.tech/tags/gui.md>), [high-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/high-risk-of-breaking-in-future-versions.md>), [matlab](<https://devfeed.tech/tags/matlab.md>), [multiple](<https://devfeed.tech/tags/multiple.md>), [selection](<https://devfeed.tech/tags/selection.md>), [toolstrip](<https://devfeed.tech/tags/toolstrip.md>), [undocumented-feature](<https://devfeed.tech/tags/undocumented-feature.md>)

### AI overview

MATLAB toolstrip galleries present buttons in grouped categories, either inline or in a popup panel. A gallery popup contains groups of items, which can be push-buttons or toggle-buttons. Toggle buttons support either single selection when used with a button group or multiple selection without one; push-buttons provide stateless, single-action behavior. The excerpt recommends assigning each item a Description, Tag, and ItemPushedFcn in a real GUI. Descriptions appear as tooltips in icon view and as labels in list view. The post points to showcaseToolGroup.m and showcaseBuildTab_Gallery.m in MATLAB's internal toolstrip directory for demonstrations. The supplied text ends while listing appearance properties, so it does not establish their full set or behavior.

### Source excerpt

Matlab toolstrips can contain customizable gallery panels of items. The post Matlab toolstrip - part 8 (galleries) appeared first on Undocumented Matlab. Related posts: Matlab toolstrip - part 7 (selection controls) Matlab toolstrips can contain a wide variety of selection controls: popups, combo-boxes, and galleries. ... Matlab toolstrip - part 6 (complex controls) Multiple types of customizable controls can be added to Matlab toolstrips... Matlab toolstrip - part 9 (popup figures) Custom popup figures can be attached to Matlab GUI toolstrip controls. ... Matlab toolstrip - part 5 (icons) Icons can be specified in various ways for toolstrip controls and the app window itself. ...

## Matlab toolstrip - part 7 (selection controls)

DevFeed: [Matlab toolstrip - part 7 (selection controls)](<https://devfeed.tech/articles/matlab-toolstrip-part-7-selection-controls-22324.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/matlab-toolstrip-part-7-selection-controls>)

Author: Yair Altman

Published: 2019-01-27T17:00:34Z

Content type: tutorial

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>), [Toolbar](<https://devfeed.tech/topics/toolbar.md>)

Tags: [combo](<https://devfeed.tech/tags/combo.md>), [complex](<https://devfeed.tech/tags/complex.md>), [control](<https://devfeed.tech/tags/control.md>), [custom](<https://devfeed.tech/tags/custom.md>), [figure](<https://devfeed.tech/tags/figure.md>), [figure-window](<https://devfeed.tech/tags/figure-window.md>), [figure-window-gui-high-risk-of-breaking-in-future-versions-undocumented-feature](<https://devfeed.tech/tags/figure-window-gui-high-risk-of-breaking-in-future-versions-undocumented-feature.md>), [gallery](<https://devfeed.tech/tags/gallery.md>), [gui](<https://devfeed.tech/tags/gui.md>), [high-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/high-risk-of-breaking-in-future-versions.md>), [list](<https://devfeed.tech/tags/list.md>), [matlab](<https://devfeed.tech/tags/matlab.md>), [selection](<https://devfeed.tech/tags/selection.md>), [selector](<https://devfeed.tech/tags/selector.md>), [toolstrip](<https://devfeed.tech/tags/toolstrip.md>), [types](<https://devfeed.tech/tags/types.md>), [undocumented-feature](<https://devfeed.tech/tags/undocumented-feature.md>), [using](<https://devfeed.tech/tags/using.md>), [value](<https://devfeed.tech/tags/value.md>)

### AI overview

The excerpt explains how to add selection controls to MATLAB toolstrips, building on earlier posts in a series. It describes a DropDown control that can map displayed labels to separate values; selecting a label updates its Value, and setting Editable=true lets users enter custom text that becomes the Value. ListBox is created similarly, but has no Editable property and offers MultiSelect (default false), which DropDown lacks. The excerpt also identifies icon-and-tooltip dropdowns, gallery selectors, and customizable popup forms as other popup types, with galleries and popup forms deferred to later posts. It does not include the code examples or the required setup snippet, and its final sentence is cut off.

### Source excerpt

Matlab toolstrips can contain a wide variety of selection controls: popups, combo-boxes, and galleries. The post Matlab toolstrip - part 7 (selection controls) appeared first on Undocumented Matlab. Related posts: Matlab toolstrip - part 6 (complex controls) Multiple types of customizable controls can be added to Matlab toolstrips... Matlab toolstrip - part 8 (galleries) Matlab toolstrips can contain customizable gallery panels of items. ... Matlab toolstrip - part 9 (popup figures) Custom popup figures can be attached to Matlab GUI toolstrip controls. ... Matlab toolstrip - part 4 (control customization) Matlab toolstrip components (controls) can be customized in various ways, including user-defined callbacks. ...

## Matlab toolstrip - part 6 (complex controls)

DevFeed: [Matlab toolstrip - part 6 (complex controls)](<https://devfeed.tech/articles/matlab-toolstrip-part-6-complex-controls-22323.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/matlab-toolstrip-part-6-complex-controls>)

Author: Yair Altman

Published: 2019-01-21T16:00:38Z

Content type: tutorial

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>), [Toolbar](<https://devfeed.tech/topics/toolbar.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>)

Tags: [complex](<https://devfeed.tech/tags/complex.md>), [figure](<https://devfeed.tech/tags/figure.md>), [figure-window](<https://devfeed.tech/tags/figure-window.md>), [figure-window-gui-high-risk-of-breaking-in-future-versions-ui-controls-undocumented-feature](<https://devfeed.tech/tags/figure-window-gui-high-risk-of-breaking-in-future-versions-ui-controls-undocumented-feature.md>), [gui](<https://devfeed.tech/tags/gui.md>), [high-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/high-risk-of-breaking-in-future-versions.md>), [matlab](<https://devfeed.tech/tags/matlab.md>), [toolstrip](<https://devfeed.tech/tags/toolstrip.md>), [ui-controls](<https://devfeed.tech/tags/ui-controls.md>), [undocumented-feature](<https://devfeed.tech/tags/undocumented-feature.md>)

### AI overview

The post introduces more complex controls for custom MATLAB app toolstrips, including button groups, edit boxes, spinners, and sliders. It recommends exploring MATLAB's built-in toolstrip demos: one shows generic components whose callbacks mostly print to the console, while another demonstrates controls interacting with docked figures and plot axes. The excerpt also notes that controls are defined by classes in MATLAB's internal toolstrip package and lists shared properties such as Description, Enabled, Tag, Children, Parent, and Type.

### Source excerpt

Multiple types of customizable controls can be added to Matlab toolstrips The post Matlab toolstrip - part 6 (complex controls) appeared first on Undocumented Matlab. Related posts: Matlab toolstrip - part 7 (selection controls) Matlab toolstrips can contain a wide variety of selection controls: popups, combo-boxes, and galleries. ... Matlab toolstrip - part 4 (control customization) Matlab toolstrip components (controls) can be customized in various ways, including user-defined callbacks. ... Matlab toolstrip - part 8 (galleries) Matlab toolstrips can contain customizable gallery panels of items. ... Matlab toolstrip - part 3 (basic customization) Matlab toolstrips can be created and customized in a variety of ways. ...

## Matlab toolstrip - part 5 (icons)

DevFeed: [Matlab toolstrip - part 5 (icons)](<https://devfeed.tech/articles/matlab-toolstrip-part-5-icons-22322.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/matlab-toolstrip-part-5-icons>)

Author: Yair Altman

Published: 2019-01-06T17:00:37Z

Content type: tutorial

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>), [Icons](<https://devfeed.tech/topics/icons.md>)

Tags: [buttons](<https://devfeed.tech/tags/buttons.md>), [component](<https://devfeed.tech/tags/component.md>), [constructor](<https://devfeed.tech/tags/constructor.md>), [custom](<https://devfeed.tech/tags/custom.md>), [file](<https://devfeed.tech/tags/file.md>), [gui](<https://devfeed.tech/tags/gui.md>), [gui-high-risk-of-breaking-in-future-versions-java-undocumented-feature](<https://devfeed.tech/tags/gui-high-risk-of-breaking-in-future-versions-java-undocumented-feature.md>), [high-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/high-risk-of-breaking-in-future-versions.md>), [icons](<https://devfeed.tech/tags/icons.md>), [java](<https://devfeed.tech/tags/java.md>), [large](<https://devfeed.tech/tags/large.md>), [matlab](<https://devfeed.tech/tags/matlab.md>), [object](<https://devfeed.tech/tags/object.md>), [property](<https://devfeed.tech/tags/property.md>), [toolstrip](<https://devfeed.tech/tags/toolstrip.md>), [undocumented-feature](<https://devfeed.tech/tags/undocumented-feature.md>)

### AI overview

The excerpt describes several ways to set icons on MATLAB toolstrip controls. It recommends 16x16 icons for controls in columns with two or three components and 24x24 icons for a control spanning a single-component column. Icons may come from roughly 150 built-in choices, or from PNG/JPG files specified by filepath. The excerpt also describes loading PNG/JPG images from JAR files, including external JARs; GIF is not supported by the filepath constructor. It notes that built-in icons use the same image-loading mechanism and identifies MATLAB's toolstrip resources folder. The excerpt cuts off while introducing another constructor option, so it does not establish the complete set of methods.

### Source excerpt

Icons can be specified in various ways for toolstrip controls and the app window itself. The post Matlab toolstrip - part 5 (icons) appeared first on Undocumented Matlab. Related posts: Matlab toolstrip - part 3 (basic customization) Matlab toolstrips can be created and customized in a variety of ways. ... Matlab toolstrip - part 9 (popup figures) Custom popup figures can be attached to Matlab GUI toolstrip controls. ... Matlab toolstrip - part 2 (ToolGroup App) Matlab users can create custom Apps with toolstrips and docked figures. ... Matlab toolstrip - part 8 (galleries) Matlab toolstrips can contain customizable gallery panels of items. ...