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

Tips for accelerating Matlab performance

Posted By Yair Altman On October 5, 2017 @ 9:25 pm In Handle graphics,Low risk of breaking in future versions | 2 Comments

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

Crustal dynamics visualization GUI [6]

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 [7] in this blog, as well as in my book “Accelerating MATLAB Performance [8]” (CRC Press, 2014, ISBN 978-1482211290).

Next week I will present live online webinars about various ways to improve Matlab’s run-time performance:

These live webinars will be 3.5 hours long, starting at 10am EDT (7am PDT, 3pm UK, 4pm CET, 7:30pm IST, time in your local timezone [14]), with a short break in the middle. The presentations content will be based on onsite training courses that I presented at multiple client locations (details [15]). A recording of the webinars will be available for anyone who cannot join the live events.

 Email me [16] if you would like additional information on the webinars or my consulting, or to inquire regarding an onsite training course.

Prasad Kalane [17], Pati David [18] liked this post

2 Comments (Open | Close)

2 Comments To "Tips for accelerating Matlab performance"

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

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 @ 9:19 am

@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/blog/tips-for-accelerating-matlab-performance

URLs in this post:

[1] Image: http://undocumentedmatlab.com/feed/

[2] email feed: http://undocumentedmatlab.com/subscribe_email.html

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

[4] my post: https://undocumentedmatlab.com/blog/some-performance-tuning-tips

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

[6] Image: https://undocumentedmatlab.com/images/ResultManagerGUI.gif

[7] Performance tag: https://undocumentedmatlab.com/blog/tag/performance

[8] Accelerating MATLAB Performance: https://undocumentedmatlab.com/books/matlab-performance

[9] Matlab performance tuning part 1: https://undocumentedmatlab.com/courses/Matlab_Performance_Tuning_1_Webinar.pdf

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

[11] Matlab performance tuning part 2: https://undocumentedmatlab.com/courses/Matlab_Performance_Tuning_2_Webinar.pdf

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

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

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

[15] details: https://undocumentedmatlab.com/training#onsite

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

[17] Prasad Kalane: https://www.facebook.com/app_scoped_user_id/644150712382299

[18] Pati David: https://www.facebook.com/app_scoped_user_id/10208753640339098

[19] Performance: scatter vs. line : https://undocumentedmatlab.com/blog/performance-scatter-vs-line

[20] Plot LimInclude properties : https://undocumentedmatlab.com/blog/plot-liminclude-properties

[21] Plot performance : https://undocumentedmatlab.com/blog/plot-performance

[22] Performance: accessing handle properties : https://undocumentedmatlab.com/blog/performance-accessing-handle-properties

[23] uicontextmenu performance : https://undocumentedmatlab.com/blog/uicontextmenu-performance

[24] Callback functions performance : https://undocumentedmatlab.com/blog/callback-functions-performance

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