Inside the MATLAB Desktop
April 20th, 2007
Split Screen mode in the Editor
A common need when writing a large M-file is to be able to view two parts of the file simultaneously. For example, perhaps you are calling a subfunction from the main body of your code, and you need to see the order of arguments.
You can split your Editor window into two sections, either vertically or horizontally, and then navigate independently in the file’s two views. To accomplish this, use either the Split Screen submenu off of the Editor’s Window menu (or context menu), or click on the little grey rectangles next to the scrollbars.

If you are using Emacs keybindings, keybinding shortcuts can also be used to switch between the different Split Screen modes.
When you are done with the second view of the file, just drag the divider to the edge of the file container and it will disappear!

By
Christina Roberts
Christina has been working on the MATLAB Editor since 2001. When she's able to tear herself away from that, she enjoys building furniture, playing the violin, and working on her poker skills.
12:10 pm |
Posted in Editor |
Permalink |
You can follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.
Leave a Reply
|
Split screen is a valuable feature. In some situations it would even better if one could lock the “second” pane to a bookmark instead of to a line number. I typically dock the the editor and thus size is limited. The “second” pane is small and if it displays lines with higher numbers than the pane I’m working in the lines of interest may slip out of the pane.
/per
I found that at the end of the comment section of most of the .m files that come with MATLAB there are several lines about the copyright and revision time. For example, in ode45.m I found the following 3 lines:
% Mark W. Reichelt and Lawrence F. Shampine, 6-14-94
% Copyright 1984-2005 The MathWorks, Inc.
% $Revision: 5.74.4.9 $ $Date: 2005/12/12 23:24:17 $
I want to know such information is generated by the Editor or added manually by the author of the M file. Thanks!
The comments are added manually by the M-file authors. We do have requests though to add templates, and that is something that we are considering for a future release. Thanks!
Love this! Thanks, Amy
Hi Junziyang,
I think the Revision and Date text is inserted by a Source Code Management system.
You could have a look at the keywords use for the CVS: it defines $Revision$ and $Date$
kind regards, Han