"split document view" is grey and cannot be clicked on

I am trying to use "split document view" to view one single file top/bottow for comparision. But the tab is grey and I cannot click on it. How can I use it?
The "display two documents side-by-side or top/bottom" works fine.
Thank you very much!
Lingzhu

1 Comment

I echo the need for the ability to show a single Livescript file with a split view, i.e. two windows that show different parts of the same file. Any file that's longer than a couple of pages is pretty hard to edit without sometimes looking at other parts.

Sign in to comment.

 Accepted Answer

Suhas Maddi
Suhas Maddi on 18 Jun 2020
Edited: per isakson on 18 Jun 2020
HI Lingzhu, I am assuming that are using the latest version of MATLAB i.e., R2020a. If I understand your problem correctly, You are trying to compare two files in a top/bottom view.
If you are trying to open same file in both the views , MATLAB won't allow you to do so . Else, you can duplicate your file and can open the original and duplicate files in two separate views or you can use compare option present in Home Tab of MATLAB to compare two different files.
I hope this helps.

4 Comments

MATLAB should have the feature to be able to view the same file side-by-side so that two sections of the same file can be worked on. Other code editors can do this.
I'm using 2020a. It looks like the traditional MATLAB editor has the feature to split the view for a document in a single tab, but the feature has been dissabled for live editor. I added it to my MATLAB toolbar preferences (the bottom three checked boxes in the graphic). When my active tab is a traditional script, the split document features are available. When my active tab is a live script, the split document features are greyed out and not active. I think this is a huge problem for live scripts.
I agree with the previous two comments that the live editor should have a feature to split a single live script into two. R2021b does not have this feature. I use it all the time for .m files and is the main reason I don't use live scripts (.mlx files).
I also agree that the live editor should have the ability to do a split-screen view of a single live script. I suppose that there may be technical issues which make this hard, but I seriously doubt that it's impossible!

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!