Comments on: Programmatic shortcuts manipulation – part 1 https://undocumentedmatlab.com/blog_old/programmatic-shortcuts-manipulation-part-1 Charting Matlab's unsupported hidden underbelly Mon, 07 Jun 2021 16:25:14 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: michel bertrandhttps://undocumentedmatlab.com/blog_old/programmatic-shortcuts-manipulation-part-1#comment-468249 Sun, 17 Mar 2019 18:26:42 +0000 https://undocumentedmatlab.com/?p=6146#comment-468249 There is a solution to create categories and get favorites, code, etc posted on nov 27.
I am playing with these ideas, and in the process of re-writing the Matlab code I wrote and maintained for more than ten years (following a Yair’suggestions, also many years ago) to save shortcuts when exiting Matlab so as to be able to restore those as they were on a specific day when exiting Matlab; a kind of laymen time machine for shortcuts.

I found scUtils still “works” in Matlab2018b, but it appears to process something which is distinct from the Favorites that were created when I first launched Maltab2018.
My first launching of Matlab2018b a few weeks ago followed a Matlab session ending under Matlab 2017b. On its first opening, Matlab2018b did some clean up on shortcuts it found and created their Favorites counterpart using the same name and the same code.
In my current usage of 2018b, scUtils can still see the old shortcuts and it will give shortcut names and code line exactly the same as those appearing under Favorites, provided those Favorites haven’t been modified with the favorite editor; after a favorite is edited, rerunning scUtils will show the original code, unchanged.

]]>
By: Julienhttps://undocumentedmatlab.com/blog_old/programmatic-shortcuts-manipulation-part-1#comment-452797 Thu, 22 Nov 2018 17:29:34 +0000 https://undocumentedmatlab.com/?p=6146#comment-452797 Thanks a lot for these tips, it works very well on Matlab 2016b.
It seems since the R2018a, shortcuts have disappeared to be replaced by favorites commands… do you have any idea on how to manipulate favorites programatically ?

I saw this on Matlab Central : https://www.mathworks.com/matlabcentral/answers/411846-how-to-create-favorites-by-code-command-window
But there is no solution.

]]>
By: Thierryhttps://undocumentedmatlab.com/blog_old/programmatic-shortcuts-manipulation-part-1#comment-367033 Thu, 07 Jan 2016 13:20:57 +0000 https://undocumentedmatlab.com/?p=6146#comment-367033 Hi Yair.
Thanks for this post!
Do you know a way to programmatically assign the created shortcut to the Quick Access Toolbar?
(This way the shortcuts are also visible on the MATLAB Editor.)
Many thanks.

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/programmatic-shortcuts-manipulation-part-1#comment-364830 Thu, 24 Dec 2015 07:04:29 +0000 https://undocumentedmatlab.com/?p=6146#comment-364830 @Andi – I am not sure what exactly is not working for you in R2015a – it works well for me up to and including R2016a. Try to add a short pause() before you update the shortcuts on startup, maybe this will help. If you would like me to look at your specific issue for a small consulting fee, then email me.

]]>
By: Andihttps://undocumentedmatlab.com/blog_old/programmatic-shortcuts-manipulation-part-1#comment-364814 Thu, 24 Dec 2015 01:33:14 +0000 https://undocumentedmatlab.com/?p=6146#comment-364814 Yair

Thank you for addressing the shortcut customization in MatLab.

The code to update the shortcuts during a session, which is discussed in your article, works very well in MatLab 2012a. However, it does not work reliably in MatLab 2015a, even though I tried to adapt it.

I have addressed this issue with Mathworks. The response was that they do not support this functionality.

I have also done some work, where I have tried to update the quick access toolbar, but again found, that is works very unreliably.

I am very interested in solutions for both issues, which work in MatLab 2015a.

Thanks, Andi

]]>