Comments on: Setting the Matlab desktop layout programmatically https://undocumentedmatlab.com/blog_old/setting-the-matlab-desktop-layout-programmatically Charting Matlab's unsupported hidden underbelly Thu, 02 May 2024 08:00:01 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: Dominikhttps://undocumentedmatlab.com/blog_old/setting-the-matlab-desktop-layout-programmatically#comment-372655 Thu, 24 Mar 2016 09:47:32 +0000 https://undocumentedmatlab.com/?p=431#comment-372655 Dear Yair,

thank you for all those helpful matlab secrets!
I was wondering how to arrange figures in my tiled custom desktop group.
The group I create like that:

desktop.setDocumentArrangement(groupname, 2, java.awt.Dimension(nXPanes, nYPanes));

And the figures I associate via:

 set(get(handle(o.figure), 'javaframe'), 'GroupName', groupname);

Now I would ideally like to control in which pane the figures are created and, possibly be able to create tabbed figures within one pane.
I would be delighted about any hint.

Thank you!

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/setting-the-matlab-desktop-layout-programmatically#comment-323912 Tue, 29 Apr 2014 19:50:16 +0000 https://undocumentedmatlab.com/?p=431#comment-323912 @Anderson:

close(matlab.desktop.editor.findOpenDocument('myMatlabFunction.m'))  % close editor file
 
close(findall(0, 'type','figure', 'name','My figure'))  % close a specific figure window
 
jDesktop = com.mathworks.mde.desk.MLDesktop.getInstance;
jDesktop.closeGroup('Figures');  % close the Figures container
]]>
By: Andersonhttps://undocumentedmatlab.com/blog_old/setting-the-matlab-desktop-layout-programmatically#comment-323911 Tue, 29 Apr 2014 19:40:30 +0000 https://undocumentedmatlab.com/?p=431#comment-323911 Hi,

Is there a command similar to desktop.closeCommandWindow, so that I can close/open editor window and figures window?

Thank you

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/setting-the-matlab-desktop-layout-programmatically#comment-288229 Thu, 24 Oct 2013 09:35:08 +0000 https://undocumentedmatlab.com/?p=431#comment-288229 nice :-)

]]>
By: Skyhttps://undocumentedmatlab.com/blog_old/setting-the-matlab-desktop-layout-programmatically#comment-288222 Thu, 24 Oct 2013 09:23:29 +0000 https://undocumentedmatlab.com/?p=431#comment-288222 This post inspired me to make a small utility (now on the File Exchange) that I personally use very often and find quite useful. Hopefully others will too. Thank you for the post. I’d love to get feedback on the file if you have any for me.

]]>
By: Troykapoikahttps://undocumentedmatlab.com/blog_old/setting-the-matlab-desktop-layout-programmatically#comment-36867 Wed, 16 Mar 2011 08:06:09 +0000 https://undocumentedmatlab.com/?p=431#comment-36867 I would like to know if there is any way to organize (remove) layouts programmatically? I have played around with uiinspect looking for the calls to organize and remove layouts, but I haven’t been too successful. Also, do you know if there is anyway to share layouts between computers and load them into MATLAB without having to restart MATLAB?

Thanks!

Troy

]]>