- Undocumented Matlab - https://undocumentedmatlab.com -

Tips for accelerating Matlab performance

I’m proud to report that MathWorks has recently posted my article “Tips for Accelerating MATLAB Performance [1]” in their latest newsletter digest (September 2017). This article is an updated and expanded version of my post [2] about consulting work that I did for the Crustal Dynamics Research Group [3] at Harvard University, where I helped speed-up a complex Matlab-based GUI by a factor of 50-500 (depending on the specific feature). You can read the full detailed technical article [2] here.

Crustal dynamics visualization GUI [4]
Crustal dynamics visualization GUI

Featuring an article on the official newsletter by a non-MathWorker is rare. Doing this with someone like myself who has a reputation for undocumented aspects, and a consultancy business that potentially competes with theirs, is certainly not obvious. I take this to be a sign that despite the possible drawbacks of publishing my article, MathWorks felt that it provided enough value to the Matlab user community to merit the risk. I applaud MathWorks for this, and thank them for the opportunity of being featured in their official newsletter and conferences. I do not take it for granted in the least.
The newsletter article provides multiple ideas of improving the run-time performance for file I/O and graphics. Many additional techniques for improving Matlab’s performance can be found under the Performance tag [5] in this blog, as well as in my book “Accelerating MATLAB Performance [6]” (CRC Press, 2014, ISBN 978-1482211290).

I am offering a couple of webinars about various ways to improve Matlab’s run-time performance:

Both the webinar videos and their corresponding slide-decks are available for download. The webinars content is based on onsite training courses that I presented at multiple client locations (details [13]).
 Email me [17] if you would like additional information on the webinars or my consulting, or to inquire regarding an onsite training course.

2 Comments (Open | Close)

2 Comments To "Tips for accelerating Matlab performance"

#1 Comment By Collin On October 22, 2017 @ 00:57

Yair,

Excellent advice as always.

I’m attempting to incorporate a breadcrumb bar into a GUI. After failing to get JIDE’s (com.jidesoft.navigation.BreadcrumbBar) to work, I tried Mathwork’s Addressbar…

vfs = com.mathworks.mlwidgets.explorer.model.vfs.VirtualFileSystem;
extReqistry =  com.mathworks.mlwidgets.explorer.model.ExplorerExtensionRegistry.getInstance;
fileLocation = com.mathworks.matlab.api.explorer.FileLocation(pwd);
navContext = com.mathworks.mlwidgets.explorer.model.navigation.NavigationContext(vfs,extReqistry,fileLocation);
jAddressBar = com.mathworks.mlwidgets.explorer.widgets.address.AddressBar(navContext);
%..........................
jhFrame.add(jAddressBar.getComponent,'North');

Which seems to look and function correctly. I just cannot figure out how to get the dataChangeNotifiction callbacks in Matlab.
Do you have any suggestions?

Sincerly

Collin

#2 Comment By Yair Altman On October 22, 2017 @ 09:19

@Collin – I’ll be happy to assist you by spending time to investigate this for you, but I would naturally expect to be compensated for my time and expertise. Email me (altmany at gmail) if you’re interested.