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