<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589</link>
    <title>MATLAB Central Newsreader - desktop layout problem</title>
    <description>Feed for thread: desktop layout problem</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 20 Nov 2008 14:27:02 -0500</pubDate>
      <title>desktop layout problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589#612104</link>
      <author>Pinpress </author>
      <description>Hi all,&lt;br&gt;
&lt;br&gt;
The short story: Matlab desktop layout only saves the position and size of the Editor, but not the command window, workspace, command history, etc. &lt;br&gt;
&lt;br&gt;
The long story: I am sure some of you also have this similar problem when working with Matlab sometimes at&lt;br&gt;
the computer where Matlab is installed while sometimes remotely by connecting to the computer remotely using remote desktop (on XP&lt;br&gt;
or Vista, at least). I always set my preferred Matlab desktop layout to be that the editor occupies the left&lt;br&gt;
half of the screen, while the command window, command history, and workspace etc. occupy the right half of the screen.&lt;br&gt;
Therefore, my Matlab would occupy the entire screen when I am working at the desktop computer where it is installed.&lt;br&gt;
I save this layout to something like: &quot;fullScreen&quot;. The problem is that if I work remotely (e.g., at home) using&lt;br&gt;
my laptop to connect to the computer remotely, I do not get the same size of the screen. If I&lt;br&gt;
want to have s similar layout (i.e., editor to occupy the left side while the rest on the right), I&lt;br&gt;
could adjust the windows until I am happy and then, save the layout as &quot;fullLaptopScreen&quot;. The problem is that, when&lt;br&gt;
I am either at the desktop or at my laptop and when I choose the appropriate layout, only the editor&lt;br&gt;
is configured the correct position and size, but not the command window etc. This is really annoying as I need&lt;br&gt;
to switch between computer rather frequently.&lt;br&gt;
&lt;br&gt;
Anyone has any suggestions/recommendations how to properly use layout manager to make my life easier?  thanks.</description>
    </item>
    <item>
      <pubDate>Thu, 20 Nov 2008 17:10:15 -0500</pubDate>
      <title>Re: desktop layout problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589#612159</link>
      <author>Peter Muellers</author>
      <description>This problem arises because saved layouts don't include the size and &lt;br&gt;
location of the main desktop frame.  They include the arrangement of &lt;br&gt;
components within the frame and the size and location of undocked frames. &lt;br&gt;
In the future we might consider providing an option in the save dialog to &lt;br&gt;
include the main frame size and location.  In the meantime there are a &lt;br&gt;
couple of ways you can achieve the behavior you desire.&lt;br&gt;
&lt;br&gt;
1. Dock the Editor, drag it to the left side of the main desktop frame and &lt;br&gt;
size it to occupy half of the frame.  Save this layout.  When you restore &lt;br&gt;
this layout the editor will occupy half of the desktop frame and the other &lt;br&gt;
components will appear within the other half.&lt;br&gt;
&lt;br&gt;
2.  This approach is a bit more involved but avoids the need to dock the &lt;br&gt;
editor.  It takes advantage of the fact that the session layout file that is &lt;br&gt;
saved automatically on exit does include the main desktop frame size and &lt;br&gt;
location.  Arrange the undocked Editor and main desktop frame the way you &lt;br&gt;
want them.  Issue the MATLAB prefdir command and take note of the &lt;br&gt;
preferences directory location.  Exit MATLAB.  In the preferences directory &lt;br&gt;
make a copy of the file &quot;MATLABDesktop.xml&quot;.  Rename the copy to &lt;br&gt;
fullScreenMATLABLayout.xml or fullLaptopScreenMATLABLayout.xml as &lt;br&gt;
appropriate.  The next time you start MATLAB corresponding entries (named &lt;br&gt;
fullScreen or fullLaptopScreen) will appear under the Desktop-&amp;gt;Desktop &lt;br&gt;
Layout menu.  Selecting one of these entries will restore the main desktop &lt;br&gt;
frame's size and location as well as the Editor's.&lt;br&gt;
&lt;br&gt;
Peter Muellers&lt;br&gt;
The MathWorks, Inc.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Pinpress&quot; &amp;lt;nothing@nothing.edu&amp;gt; wrote in message &lt;br&gt;
news:gg3s3m$2il$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hi all,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The short story: Matlab desktop layout only saves the position and size of &lt;br&gt;
&amp;gt; the Editor, but not the command window, workspace, command history, etc.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The long story: I am sure some of you also have this similar problem when &lt;br&gt;
&amp;gt; working with Matlab sometimes at&lt;br&gt;
&amp;gt; the computer where Matlab is installed while sometimes remotely by &lt;br&gt;
&amp;gt; connecting to the computer remotely using remote desktop (on XP&lt;br&gt;
&amp;gt; or Vista, at least). I always set my preferred Matlab desktop layout to be &lt;br&gt;
&amp;gt; that the editor occupies the left&lt;br&gt;
&amp;gt; half of the screen, while the command window, command history, and &lt;br&gt;
&amp;gt; workspace etc. occupy the right half of the screen.&lt;br&gt;
&amp;gt; Therefore, my Matlab would occupy the entire screen when I am working at &lt;br&gt;
&amp;gt; the desktop computer where it is installed.&lt;br&gt;
&amp;gt; I save this layout to something like: &quot;fullScreen&quot;. The problem is that if &lt;br&gt;
&amp;gt; I work remotely (e.g., at home) using&lt;br&gt;
&amp;gt; my laptop to connect to the computer remotely, I do not get the same size &lt;br&gt;
&amp;gt; of the screen. If I&lt;br&gt;
&amp;gt; want to have s similar layout (i.e., editor to occupy the left side while &lt;br&gt;
&amp;gt; the rest on the right), I&lt;br&gt;
&amp;gt; could adjust the windows until I am happy and then, save the layout as &lt;br&gt;
&amp;gt; &quot;fullLaptopScreen&quot;. The problem is that, when&lt;br&gt;
&amp;gt; I am either at the desktop or at my laptop and when I choose the &lt;br&gt;
&amp;gt; appropriate layout, only the editor&lt;br&gt;
&amp;gt; is configured the correct position and size, but not the command window &lt;br&gt;
&amp;gt; etc. This is really annoying as I need&lt;br&gt;
&amp;gt; to switch between computer rather frequently.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Anyone has any suggestions/recommendations how to properly use layout &lt;br&gt;
&amp;gt; manager to make my life easier?  thanks. </description>
    </item>
    <item>
      <pubDate>Thu, 20 Nov 2008 22:26:02 -0500</pubDate>
      <title>Re: desktop layout problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589#612246</link>
      <author>Pinpress </author>
      <description>I like the second method. So far it seems to be working. thanks.</description>
    </item>
    <item>
      <pubDate>Fri, 21 Nov 2008 13:59:02 -0500</pubDate>
      <title>Re: desktop layout problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589#612364</link>
      <author>Pinpress </author>
      <description>Hi Peter,&lt;br&gt;
&lt;br&gt;
It still seems not entirely working -- I followed the second method, and when I tried to use DesktopLayout in my office after Matlab was used remotely using LaptopLayout, I can see that the editor was positioned and sized correctly. The main window was sized correctly, but not positioned all the way to the right. It was somehow still in the middle. I wonder if there is any further fix to this. By the way, I am using R2008b. thanks.&lt;br&gt;
&lt;br&gt;
Pinpress&lt;br&gt;
&lt;br&gt;
&quot;Peter Muellers&quot; &amp;lt;Peter.Muellers@mathworks.com&amp;gt; wrote in message &amp;lt;gg45lq$5oc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; This problem arises because saved layouts don't include the size and &lt;br&gt;
&amp;gt; location of the main desktop frame.  They include the arrangement of &lt;br&gt;
&amp;gt; components within the frame and the size and location of undocked frames. &lt;br&gt;
&amp;gt; In the future we might consider providing an option in the save dialog to &lt;br&gt;
&amp;gt; include the main frame size and location.  In the meantime there are a &lt;br&gt;
&amp;gt; couple of ways you can achieve the behavior you desire.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 1. Dock the Editor, drag it to the left side of the main desktop frame and &lt;br&gt;
&amp;gt; size it to occupy half of the frame.  Save this layout.  When you restore &lt;br&gt;
&amp;gt; this layout the editor will occupy half of the desktop frame and the other &lt;br&gt;
&amp;gt; components will appear within the other half.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 2.  This approach is a bit more involved but avoids the need to dock the &lt;br&gt;
&amp;gt; editor.  It takes advantage of the fact that the session layout file that is &lt;br&gt;
&amp;gt; saved automatically on exit does include the main desktop frame size and &lt;br&gt;
&amp;gt; location.  Arrange the undocked Editor and main desktop frame the way you &lt;br&gt;
&amp;gt; want them.  Issue the MATLAB prefdir command and take note of the &lt;br&gt;
&amp;gt; preferences directory location.  Exit MATLAB.  In the preferences directory &lt;br&gt;
&amp;gt; make a copy of the file &quot;MATLABDesktop.xml&quot;.  Rename the copy to &lt;br&gt;
&amp;gt; fullScreenMATLABLayout.xml or fullLaptopScreenMATLABLayout.xml as &lt;br&gt;
&amp;gt; appropriate.  The next time you start MATLAB corresponding entries (named &lt;br&gt;
&amp;gt; fullScreen or fullLaptopScreen) will appear under the Desktop-&amp;gt;Desktop &lt;br&gt;
&amp;gt; Layout menu.  Selecting one of these entries will restore the main desktop &lt;br&gt;
&amp;gt; frame's size and location as well as the Editor's.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Peter Muellers&lt;br&gt;
&amp;gt; The MathWorks, Inc.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Pinpress&quot; &amp;lt;nothing@nothing.edu&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:gg3s3m$2il$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; Hi all,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; The short story: Matlab desktop layout only saves the position and size of &lt;br&gt;
&amp;gt; &amp;gt; the Editor, but not the command window, workspace, command history, etc.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; The long story: I am sure some of you also have this similar problem when &lt;br&gt;
&amp;gt; &amp;gt; working with Matlab sometimes at&lt;br&gt;
&amp;gt; &amp;gt; the computer where Matlab is installed while sometimes remotely by &lt;br&gt;
&amp;gt; &amp;gt; connecting to the computer remotely using remote desktop (on XP&lt;br&gt;
&amp;gt; &amp;gt; or Vista, at least). I always set my preferred Matlab desktop layout to be &lt;br&gt;
&amp;gt; &amp;gt; that the editor occupies the left&lt;br&gt;
&amp;gt; &amp;gt; half of the screen, while the command window, command history, and &lt;br&gt;
&amp;gt; &amp;gt; workspace etc. occupy the right half of the screen.&lt;br&gt;
&amp;gt; &amp;gt; Therefore, my Matlab would occupy the entire screen when I am working at &lt;br&gt;
&amp;gt; &amp;gt; the desktop computer where it is installed.&lt;br&gt;
&amp;gt; &amp;gt; I save this layout to something like: &quot;fullScreen&quot;. The problem is that if &lt;br&gt;
&amp;gt; &amp;gt; I work remotely (e.g., at home) using&lt;br&gt;
&amp;gt; &amp;gt; my laptop to connect to the computer remotely, I do not get the same size &lt;br&gt;
&amp;gt; &amp;gt; of the screen. If I&lt;br&gt;
&amp;gt; &amp;gt; want to have s similar layout (i.e., editor to occupy the left side while &lt;br&gt;
&amp;gt; &amp;gt; the rest on the right), I&lt;br&gt;
&amp;gt; &amp;gt; could adjust the windows until I am happy and then, save the layout as &lt;br&gt;
&amp;gt; &amp;gt; &quot;fullLaptopScreen&quot;. The problem is that, when&lt;br&gt;
&amp;gt; &amp;gt; I am either at the desktop or at my laptop and when I choose the &lt;br&gt;
&amp;gt; &amp;gt; appropriate layout, only the editor&lt;br&gt;
&amp;gt; &amp;gt; is configured the correct position and size, but not the command window &lt;br&gt;
&amp;gt; &amp;gt; etc. This is really annoying as I need&lt;br&gt;
&amp;gt; &amp;gt; to switch between computer rather frequently.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Anyone has any suggestions/recommendations how to properly use layout &lt;br&gt;
&amp;gt; &amp;gt; manager to make my life easier?  thanks. </description>
    </item>
    <item>
      <pubDate>Fri, 21 Nov 2008 14:15:44 -0500</pubDate>
      <title>Re: desktop layout problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589#612366</link>
      <author>Rune Allnor</author>
      <description>On 20 Nov, 18:10, &quot;Peter Muellers&quot; &amp;lt;Peter.Muell...@mathworks.com&amp;gt;&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt; This problem arises because saved layouts don't include the size and&lt;br&gt;
&amp;gt; location of the main desktop frame. =A0They include the arrangement of&lt;br&gt;
&amp;gt; components within the frame and the size and location of undocked frames.&lt;br&gt;
&amp;gt; In the future we might consider providing an option in the save dialog to&lt;br&gt;
&amp;gt; include the main frame size and location. =A0&lt;br&gt;
&lt;br&gt;
I would suggest you prioritize this issue, and make an effort&lt;br&gt;
to improve the ergonomics for the individual users.&lt;br&gt;
&lt;br&gt;
For all matlab users, there is the question of preserving&lt;br&gt;
preferences and settings over updates between releases.&lt;br&gt;
With a twice-per year release rate, the newly installed&lt;br&gt;
matlab version should just scan and adopt pre-existing&lt;br&gt;
user settings, if any.&lt;br&gt;
&lt;br&gt;
Desktop settings can already be saved by name. It ought to&lt;br&gt;
be possible to select a preferred desktop setting by name&lt;br&gt;
from startup.m.&lt;br&gt;
&lt;br&gt;
Lots of users (like me) travel form site to site and&lt;br&gt;
use a matlab lisences made available by others. It would&lt;br&gt;
be very conveient if I could save my preferred matlab&lt;br&gt;
desktop configuration to some file on a USB stick, so&lt;br&gt;
I can load it on the new site. This way I can always&lt;br&gt;
work in my familiar desktop environment and window&lt;br&gt;
configuration.&lt;br&gt;
&lt;br&gt;
The local 'work' directory should be located in the user's&lt;br&gt;
&quot;My Directory&quot; folder (or similar), not under a release-&lt;br&gt;
specific folder (this may have been changed since R2006a,&lt;br&gt;
which is what I use.)&lt;br&gt;
&lt;br&gt;
Just some ideas.&lt;br&gt;
&lt;br&gt;
Rune</description>
    </item>
    <item>
      <pubDate>Fri, 21 Nov 2008 14:40:19 -0500</pubDate>
      <title>Re: desktop layout problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589#612371</link>
      <author>Pinpress </author>
      <description>I agree with Rune. Also I would prefer that there is way somewhere to start up matlab with a default current directory other than :&lt;br&gt;
&lt;br&gt;
C:\Users\LOGINNAME\Documents\MATLAB&lt;br&gt;
&lt;br&gt;
which is the case now. I always have my entire work directories (not just matlab) in logical drive D. So every time I start up Matlab, the first thing for me to do is to click the current directory drop down list and change it to something else. &lt;br&gt;
&lt;br&gt;
It may seem funny, but I have resisted upgrading to Matlab R2008b and still using R2006b for a long time, just because the newer release had a default directory on C.&lt;br&gt;
&lt;br&gt;
Rune Allnor &amp;lt;allnor@tele.ntnu.no&amp;gt; wrote in message &amp;lt;829d65b1-7cbb-42c7-81ee-&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The local 'work' directory should be located in the user's&lt;br&gt;
&amp;gt; &quot;My Directory&quot; folder (or similar), not under a release-&lt;br&gt;
&amp;gt; specific folder (this may have been changed since R2006a,&lt;br&gt;
&amp;gt; which is what I use.)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Just some ideas.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Rune</description>
    </item>
    <item>
      <pubDate>Fri, 21 Nov 2008 16:58:32 -0500</pubDate>
      <title>Re: desktop layout problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589#612419</link>
      <author>Peter Muellers</author>
      <description>Rune,&lt;br&gt;
&lt;br&gt;
Regarding the following &quot;... the newly installed matlab version should just &lt;br&gt;
scan and adopt pre-existing user settings, if any.&quot;  This is generally what &lt;br&gt;
MATLAB does.  Have you seen otherwise during a recent upgrade?&lt;br&gt;
&lt;br&gt;
Your suggestions regarding the need for settings portability are well taken.&lt;br&gt;
&lt;br&gt;
The &quot;work&quot; directory has been changed to use the proper location under &lt;br&gt;
Windows (I believe as of R2007b).&lt;br&gt;
&lt;br&gt;
Thanks for the suggestions and insight into your usage of MATLAB.&lt;br&gt;
&lt;br&gt;
Peter&lt;br&gt;
&lt;br&gt;
&quot;Rune Allnor&quot; &amp;lt;allnor@tele.ntnu.no&amp;gt; wrote in message &lt;br&gt;
news:829d65b1-7cbb-42c7-81ee-715c73358d0c@j39g2000yqn.googlegroups.com...&lt;br&gt;
On 20 Nov, 18:10, &quot;Peter Muellers&quot; &amp;lt;Peter.Muell...@mathworks.com&amp;gt;&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt; This problem arises because saved layouts don't include the size and&lt;br&gt;
&amp;gt; location of the main desktop frame. They include the arrangement of&lt;br&gt;
&amp;gt; components within the frame and the size and location of undocked frames.&lt;br&gt;
&amp;gt; In the future we might consider providing an option in the save dialog to&lt;br&gt;
&amp;gt; include the main frame size and location.&lt;br&gt;
&lt;br&gt;
I would suggest you prioritize this issue, and make an effort&lt;br&gt;
to improve the ergonomics for the individual users.&lt;br&gt;
&lt;br&gt;
For all matlab users, there is the question of preserving&lt;br&gt;
preferences and settings over updates between releases.&lt;br&gt;
With a twice-per year release rate, the newly installed&lt;br&gt;
matlab version should just scan and adopt pre-existing&lt;br&gt;
user settings, if any.&lt;br&gt;
&lt;br&gt;
Desktop settings can already be saved by name. It ought to&lt;br&gt;
be possible to select a preferred desktop setting by name&lt;br&gt;
from startup.m.&lt;br&gt;
&lt;br&gt;
Lots of users (like me) travel form site to site and&lt;br&gt;
use a matlab lisences made available by others. It would&lt;br&gt;
be very conveient if I could save my preferred matlab&lt;br&gt;
desktop configuration to some file on a USB stick, so&lt;br&gt;
I can load it on the new site. This way I can always&lt;br&gt;
work in my familiar desktop environment and window&lt;br&gt;
configuration.&lt;br&gt;
&lt;br&gt;
The local 'work' directory should be located in the user's&lt;br&gt;
&quot;My Directory&quot; folder (or similar), not under a release-&lt;br&gt;
specific folder (this may have been changed since R2006a,&lt;br&gt;
which is what I use.)&lt;br&gt;
&lt;br&gt;
Just some ideas.&lt;br&gt;
&lt;br&gt;
Rune </description>
    </item>
    <item>
      <pubDate>Fri, 21 Nov 2008 18:51:45 -0500</pubDate>
      <title>Re: desktop layout problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589#612454</link>
      <author>Rune Allnor</author>
      <description>On 21 Nov, 17:58, &quot;Peter Muellers&quot; &amp;lt;Peter.Muell...@mathworks.com&amp;gt;&lt;br&gt;
wrote:&lt;br&gt;
&amp;gt; Rune,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Regarding the following &quot;... the newly installed matlab version should ju=&lt;br&gt;
st&lt;br&gt;
&amp;gt; scan and adopt pre-existing user settings, if any.&quot; =A0This is generally =&lt;br&gt;
what&lt;br&gt;
&amp;gt; MATLAB does. =A0Have you seen otherwise during a recent upgrade?&lt;br&gt;
&lt;br&gt;
My last upgrade was to R2006a, so no, I don't have any&lt;br&gt;
recent experience.&lt;br&gt;
&lt;br&gt;
Rune</description>
    </item>
    <item>
      <pubDate>Fri, 21 Nov 2008 19:32:21 -0500</pubDate>
      <title>Re: desktop layout problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589#612466</link>
      <author>Peter Muellers</author>
      <description>If I understand your usage correctly, &quot;DesktopLayout&quot; is the renamed xml &lt;br&gt;
file from a previous session on your office computer.  You startup MATLAB in &lt;br&gt;
your office, having most recently run it remotely from a laptop.  On startup &lt;br&gt;
the desktop restores the layout appropriate for the laptop.  You then choose &lt;br&gt;
DesktopLayout but it doesn't correctly restore the main frame's location. &lt;br&gt;
Do I have this right?&lt;br&gt;
&lt;br&gt;
I tried the equivalent steps here and didn't observe any problem.  If you &lt;br&gt;
send me a screen shot of your desktop after the failed restore plus the &lt;br&gt;
DeskopLayoutMATLABLayout.xml file I can try to diagnose the problem.&lt;br&gt;
&lt;br&gt;
Peter&lt;br&gt;
&lt;br&gt;
&quot;Pinpress&quot; &amp;lt;nothing@nothing.edu&amp;gt; wrote in message &lt;br&gt;
news:gg6er6$bd5$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hi Peter,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It still seems not entirely working -- I followed the second method, and &lt;br&gt;
&amp;gt; when I tried to use DesktopLayout in my office after Matlab was used &lt;br&gt;
&amp;gt; remotely using LaptopLayout, I can see that the editor was positioned and &lt;br&gt;
&amp;gt; sized correctly. The main window was sized correctly, but not positioned &lt;br&gt;
&amp;gt; all the way to the right. It was somehow still in the middle. I wonder if &lt;br&gt;
&amp;gt; there is any further fix to this. By the way, I am using R2008b. thanks.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Pinpress&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &quot;Peter Muellers&quot; &amp;lt;Peter.Muellers@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;gg45lq$5oc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; This problem arises because saved layouts don't include the size and&lt;br&gt;
&amp;gt;&amp;gt; location of the main desktop frame.  They include the arrangement of&lt;br&gt;
&amp;gt;&amp;gt; components within the frame and the size and location of undocked frames.&lt;br&gt;
&amp;gt;&amp;gt; In the future we might consider providing an option in the save dialog to&lt;br&gt;
&amp;gt;&amp;gt; include the main frame size and location.  In the meantime there are a&lt;br&gt;
&amp;gt;&amp;gt; couple of ways you can achieve the behavior you desire.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; 1. Dock the Editor, drag it to the left side of the main desktop frame &lt;br&gt;
&amp;gt;&amp;gt; and&lt;br&gt;
&amp;gt;&amp;gt; size it to occupy half of the frame.  Save this layout.  When you restore&lt;br&gt;
&amp;gt;&amp;gt; this layout the editor will occupy half of the desktop frame and the &lt;br&gt;
&amp;gt;&amp;gt; other&lt;br&gt;
&amp;gt;&amp;gt; components will appear within the other half.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; 2.  This approach is a bit more involved but avoids the need to dock the&lt;br&gt;
&amp;gt;&amp;gt; editor.  It takes advantage of the fact that the session layout file that &lt;br&gt;
&amp;gt;&amp;gt; is&lt;br&gt;
&amp;gt;&amp;gt; saved automatically on exit does include the main desktop frame size and&lt;br&gt;
&amp;gt;&amp;gt; location.  Arrange the undocked Editor and main desktop frame the way you&lt;br&gt;
&amp;gt;&amp;gt; want them.  Issue the MATLAB prefdir command and take note of the&lt;br&gt;
&amp;gt;&amp;gt; preferences directory location.  Exit MATLAB.  In the preferences &lt;br&gt;
&amp;gt;&amp;gt; directory&lt;br&gt;
&amp;gt;&amp;gt; make a copy of the file &quot;MATLABDesktop.xml&quot;.  Rename the copy to&lt;br&gt;
&amp;gt;&amp;gt; fullScreenMATLABLayout.xml or fullLaptopScreenMATLABLayout.xml as&lt;br&gt;
&amp;gt;&amp;gt; appropriate.  The next time you start MATLAB corresponding entries (named&lt;br&gt;
&amp;gt;&amp;gt; fullScreen or fullLaptopScreen) will appear under the Desktop-&amp;gt;Desktop&lt;br&gt;
&amp;gt;&amp;gt; Layout menu.  Selecting one of these entries will restore the main &lt;br&gt;
&amp;gt;&amp;gt; desktop&lt;br&gt;
&amp;gt;&amp;gt; frame's size and location as well as the Editor's.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Peter Muellers&lt;br&gt;
&amp;gt;&amp;gt; The MathWorks, Inc.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &quot;Pinpress&quot; &amp;lt;nothing@nothing.edu&amp;gt; wrote in message&lt;br&gt;
&amp;gt;&amp;gt; news:gg3s3m$2il$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Hi all,&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; The short story: Matlab desktop layout only saves the position and size &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; of&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; the Editor, but not the command window, workspace, command history, &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; etc.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; The long story: I am sure some of you also have this similar problem &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; when&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; working with Matlab sometimes at&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; the computer where Matlab is installed while sometimes remotely by&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; connecting to the computer remotely using remote desktop (on XP&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; or Vista, at least). I always set my preferred Matlab desktop layout to &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; be&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; that the editor occupies the left&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; half of the screen, while the command window, command history, and&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; workspace etc. occupy the right half of the screen.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Therefore, my Matlab would occupy the entire screen when I am working &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; at&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; the desktop computer where it is installed.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; I save this layout to something like: &quot;fullScreen&quot;. The problem is that &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; if&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; I work remotely (e.g., at home) using&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; my laptop to connect to the computer remotely, I do not get the same &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; size&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; of the screen. If I&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; want to have s similar layout (i.e., editor to occupy the left side &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; while&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; the rest on the right), I&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; could adjust the windows until I am happy and then, save the layout as&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; &quot;fullLaptopScreen&quot;. The problem is that, when&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; I am either at the desktop or at my laptop and when I choose the&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; appropriate layout, only the editor&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; is configured the correct position and size, but not the command window&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; etc. This is really annoying as I need&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; to switch between computer rather frequently.&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; Anyone has any suggestions/recommendations how to properly use layout&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; manager to make my life easier?  thanks.&lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Fri, 21 Nov 2008 23:49:01 -0500</pubDate>
      <title>Re: desktop layout problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589#612517</link>
      <author>Dan Haeg</author>
      <description>&quot;Pinpress&quot; &amp;lt;nothing@nothing.edu&amp;gt; wrote in message &amp;lt;gg6h8j$noq$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I agree with Rune. Also I would prefer that there is way somewhere to start up matlab with a default current directory other than :&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; C:\Users\LOGINNAME\Documents\MATLAB&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I'm using windows xp and matlab 2008a. On my matlab icon properties I set the start in field to &quot;D:\MATLAB M-files&quot; this works for me. If you prefer you can crate a startup.m on your matlab path and cd to your favorite directory.&lt;br&gt;
&lt;br&gt;
Dan</description>
    </item>
    <item>
      <pubDate>Mon, 24 Nov 2008 13:33:01 -0500</pubDate>
      <title>Re: desktop layout problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589#612869</link>
      <author>Pinpress </author>
      <description>Hi Peter,&lt;br&gt;
&lt;br&gt;
Yes, you understood it correctly. I tried to repeat the process, but *this* time both editor and main window were sized and positioned correctly. However, I have a new problem (actually, it also happened last time as well). All the opened files in the editor in the last session were opened a second time in the editor. For example, if I had files A, B and C opened remotely. Now I come to my office and I chose &quot;DesktopLayout&quot;, I then would have A, B, C, A, B and C opened in my editor. &lt;br&gt;
&lt;br&gt;
Let me email you part of the screen shot as well as the .xml file. Please check your email. thanks.&lt;br&gt;
&lt;br&gt;
&quot;Peter Muellers&quot; &amp;lt;Peter.Muellers@mathworks.com&amp;gt; wrote in message &amp;lt;gg72c9$ero$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; If I understand your usage correctly, &quot;DesktopLayout&quot; is the renamed xml &lt;br&gt;
&amp;gt; file from a previous session on your office computer.  You startup MATLAB in &lt;br&gt;
&amp;gt; your office, having most recently run it remotely from a laptop.  On startup &lt;br&gt;
&amp;gt; the desktop restores the layout appropriate for the laptop.  You then choose &lt;br&gt;
&amp;gt; DesktopLayout but it doesn't correctly restore the main frame's location. &lt;br&gt;
&amp;gt; Do I have this right?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I tried the equivalent steps here and didn't observe any problem.  If you &lt;br&gt;
&amp;gt; send me a screen shot of your desktop after the failed restore plus the &lt;br&gt;
&amp;gt; DeskopLayoutMATLABLayout.xml file I can try to diagnose the problem.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Peter&lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Mon, 24 Nov 2008 13:34:02 -0500</pubDate>
      <title>Re: desktop layout problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239589#612870</link>
      <author>Pinpress </author>
      <description>Hi Dan,&lt;br&gt;
&lt;br&gt;
Thanks -- I knew about the &quot;startup.m&quot; method, but not the one changing the icon property. By the way, it worked very well on my Vista 64-bit.&lt;br&gt;
&lt;br&gt;
&quot;Dan Haeg&quot; &amp;lt;haegd@msoe.edu&amp;gt; wrote in message &amp;lt;gg7hdd$64s$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Pinpress&quot; &amp;lt;nothing@nothing.edu&amp;gt; wrote in message &amp;lt;gg6h8j$noq$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; I agree with Rune. Also I would prefer that there is way somewhere to start up matlab with a default current directory other than :&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; C:\Users\LOGINNAME\Documents\MATLAB&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm using windows xp and matlab 2008a. On my matlab icon properties I set the start in field to &quot;D:\MATLAB M-files&quot; this works for me. If you prefer you can crate a startup.m on your matlab path and cd to your favorite directory.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Dan</description>
    </item>
  </channel>
</rss>

