Viewing the same window split screen in 2024 and up
Show older comments
Hi! I've been searching the forum but can only find answers to past versions that don't seem available options any more
I'm just trying to view the same Matlab file in two different windows so I can look and edit two portions at the same time. Any tips would be great.
2 Comments
Maybe of help:
This is an AI generated answer:
You can view the same MATLAB file in two different windows by using the Split Document feature on the View tab, which allows you to see different parts of the file in two panes. Alternatively, you can open the file in two separate MATLAB instances and arrange them side-by-side.
Option 1: Split the editor window
- Open your file in the MATLAB editor.
- Go to the View tab.
- In the Tiles section, choose an option like Vertical or Horizontal to split the current editor window into two panes.
- You can now scroll independently in each pane to view different parts of the same file.
- To return to the default single window, double-click the border between the two panes or click the single-pane layout option on the View tab.
Option 2: Open the file in a new MATLAB instance
- Open your MATLAB file in the first instance of MATLAB.
- Launch a second instance of MATLAB. You may be able to use the -n flag from the command line to force a new instance, depending on your MATLAB version.
- In the second MATLAB instance, open the same file.
- Arrange the two separate MATLAB windows on your screen side-by-side
I've stayed at R2022b owing to so much angst over changes in desktop/editor with R2024 and R2025 so don't know exactly what the UI looks like there now, but you might look at <S Lord's response (may have to expand hidden comments)> and see if that workflow solves the problem.
Does anybody know if the current/recent editors can handle the case of modifying a file in an external editor and reloading it if changed externally? In days of yore that was my normal mode of operation; I used my familiar external editor(*) for actual extensive code development when the MATLAB editor was woefully lacking in features but it did recognize when the file was changed externally when saved so could then still use the debug controls.
(*) Geezer alert! <g> In those days before 64-bit Windoes, I used a highly customized version of the old DOS Brief editor with syntax-sensitive extensions, etc., for all code development, still mostly Fortran in those days) so had same familiar toolset for everything. Being unable to override many of the MS keyboard mappings was a real hard thing to take for a long time. The MATLAB editor still lacks many convenient features but its integration into the environment makes it almost imperative any more.
Answers (0)
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!