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

Tips for accelerating Matlab performance

Posted By Yair Altman On October 5, 2017 | 2 Comments

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.

Categories: Handle graphics, Low risk of breaking in future versions

2 Comments (Open | Close)

2 Comments To "Tips for accelerating Matlab performance"

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


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);

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?



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

Article printed from Undocumented Matlab: https://undocumentedmatlab.com

URL to article: https://undocumentedmatlab.com/articles/tips-for-accelerating-matlab-performance

URLs in this post:

[1] Tips for Accelerating MATLAB Performance: https://www.mathworks.com/company/newsletters/articles/tips-for-accelerating-matlab-performance.html

[2] my post: http://undocumentedmatlab.com/blog/some-performance-tuning-tips

[3] Crustal Dynamics Research Group: http://summit.fas.harvard.edu

[4] Image: http://undocumentedmatlab.com/images/ResultManagerGUI.gif

[5] Performance tag: http://undocumentedmatlab.com/blog/tag/performance

[6] Accelerating MATLAB Performance: http://undocumentedmatlab.com/books/matlab-performance

[7] Matlab performance tuning part 1: http://undocumentedmatlab.com/courses/Matlab_Performance_Tuning_1_Webinar.pdf

[8] buy: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick¤cy_code=USD&business=octahedron.ltd@gmail.com&quantity=1&amount=295&item_name=Matlab+performance+1+webinar

[9] Matlab performance tuning part 2: http://undocumentedmatlab.com/courses/Matlab_Performance_Tuning_2_Webinar.pdf

[10] buy: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick¤cy_code=USD&business=octahedron.ltd@gmail.com&quantity=1&amount=295&item_name=Matlab+performance+2+webinar

[11] buy: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick¤cy_code=USD&business=octahedron.ltd@gmail.com&quantity=1&amount=495&item_name=Matlab+performance+webinars

[12] time in your local timezone: https://www.google.com/search?q=9am+edt+to+my+time

[13] details: http://undocumentedmatlab.com/training#onsite

[14] buy: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&currency_code=USD&business=octahedron.ltd@gmail.com&quantity=1&amount=195&item_name=Matlab+performance+1+webinar

[15] buy: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&currency_code=USD&business=octahedron.ltd@gmail.com&quantity=1&amount=195&item_name=Matlab+performance+2+webinar

[16] buy: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&currency_code=USD&business=octahedron.ltd@gmail.com&quantity=1&amount=345&item_name=Matlab+performance+webinars

[17] Image: mailto: altmany @gmail.com?subject=Matlab webinars&body=Hi Yair, &cc=;&bcc=

[18] Some Matlab performance-tuning tips : https://undocumentedmatlab.com/articles/some-performance-tuning-tips

[19] New book: Accelerating MATLAB Performance : https://undocumentedmatlab.com/articles/new-book-accelerating-matlab-performance

[20] A few parfor tips : https://undocumentedmatlab.com/articles/a-few-parfor-tips

[21] Matlab-Java memory leaks, performance : https://undocumentedmatlab.com/articles/matlab-java-memory-leaks-performance

[22] Controlling plot data-tips : https://undocumentedmatlab.com/articles/controlling-plot-data-tips

[23] COM/ActiveX tips & tricks : https://undocumentedmatlab.com/articles/com-activex-tips

Copyright © Yair Altman - Undocumented Matlab. All rights reserved.