# Pure Matlab

Published articles for Pure Matlab.

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: tutorial

Language: en

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

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>), [Statistics](<https://devfeed.tech/topics/statistics.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.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>), [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

This tutorial explains how to optimize a local copy of MATLAB's built-in mvksdensity implementation. For a 1024x1024 data mesh, the author reports reducing runtime from 76 seconds to 13 seconds while preserving numerical accuracy, using MATLAB R2016a or newer with 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: tutorial

Language: en

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

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>), [GUI](<https://devfeed.tech/topics/gui.md>), [Usability](<https://devfeed.tech/topics/usability.md>)

Tags: [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>), [medium-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/medium-risk-of-breaking-in-future-versions.md>), [performance](<https://devfeed.tech/tags/performance.md>), [profiling](<https://devfeed.tech/tags/profiling.md>), [pure-matlab](<https://devfeed.tech/tags/pure-matlab.md>), [script](<https://devfeed.tech/tags/script.md>), [stock-matlab-function](<https://devfeed.tech/tags/stock-matlab-function.md>), [toolbar](<https://devfeed.tech/tags/toolbar.md>), [usability](<https://devfeed.tech/tags/usability.md>)

### AI overview

This article examines MATLAB R2018b's default axes mouse interactions, focusing on performance and usability problems. It describes replacing inefficient DataTipInteraction and PanInteraction settings with RegionZoomInteraction and outlines a test setup for measuring the changes.

### 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: tutorial

Language: en

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

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

Tags: [graphics](<https://devfeed.tech/tags/graphics.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-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>), [plotting](<https://devfeed.tech/tags/plotting.md>), [properties](<https://devfeed.tech/tags/properties.md>), [pure-matlab](<https://devfeed.tech/tags/pure-matlab.md>), [stock-matlab-function](<https://devfeed.tech/tags/stock-matlab-function.md>), [undocumented-feature](<https://devfeed.tech/tags/undocumented-feature.md>), [visualization](<https://devfeed.tech/tags/visualization.md>)

### AI overview

This article explains how MATLAB's hidden MarkerHandle property exposes undocumented plot marker styles, including the hbar and vbar styles. It also describes related marker customization capabilities such as transparency and color gradients.

### 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. ...