Skip to Main Content Skip to Search
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

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.

SplitScreenBefore.png

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!

SplitScreenAfter.png

5 Responses to “Split Screen mode in the Editor”

  1. per isakson replied on :

    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

  2. junziyang replied on :

    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!

  3. Christina replied on :

    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!

  4. Amy Farris replied on :

    Love this! Thanks, Amy

  5. Han Geerligs replied on :

    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

Leave a Reply


Inside the MATLAB Desktop is written by the MATLAB Interface teams.

Team picture
  • Etienne: Hello, Is it possible to change the background color of a particular cell?
  • Ken: No problem Mark…glad to help. Enjoy your font!
  • Mark Andrews: Ken, thanks for replying @3 and giving such clear instructions on how to get this to work.
  • Steve Eddins: Hi Ken, Every year or so I try to find a programming font that would really make me happy. A couple of...
  • Ken: @Jiro: Andale Mono looks nice! I especially like the rendering of the letter “g”.
  • Ken: Hi Mark, The issue your referring to (see the bug report here) was fixed in version 7.5 (R2007b). The problem...
  • Jiro: Ken, That’s a nice font. I use “Andale Mono” which has a similar look. I also like the clear...
  • Queffurust: This is my “cleanup” ; shortcut clc % clear Command Window close all hidden % deletes all...
  • Mark Andrews: Ken, should this work with version 7.0 (R14) on Windows? My favorite font is Consolas, but MATLAB seems...
  • Mark Feldman: Like Bryan (#38) and Kim (#40), I strongly request that you add native vi key bindings to the MATLAB...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.

Related Topics