Matlab editor: Open a script in a new tab ?

When I try to open a script from the editor, it automatically closes the script that was open. It is impossible to open several scripts in different tabs of the editor. What is the solution ?
I use Matlab R2015b (64 bit MATLAB on Windows). To open a new script, from the editor, I just click on the "open" button. It is not a new installation. I have this problem since a kind of Matlab bug (the script which was open, with no reason, has been deleted).

5 件のコメント

Stephen23
Stephen23 2017 年 1 月 31 日
編集済み: Stephen23 2017 年 1 月 31 日
Very odd. Please edit your question and tell us exactly what MATLAB version you are using, and exactly what command or buttons you are using to open a new script with: we need enough information so that we can replicate this behavior.
Jan
Jan 2017 年 1 月 31 日
And we should know, if this is a new installation or what has changed since it did what is expected.
John D'Errico
John D'Errico 2017 年 1 月 31 日
編集済み: John D'Errico 2017 年 1 月 31 日
My first guess is this is an old MATLAB release that did not allow multiple edit tabs. (People use old releases all the time, sometimes without even realizing they are doing so.) And without further information, that is what I'd go with. In that case, use a new release, or accept the constraints of using an old release, or find a different text editor that works on your OS.
Jan
Jan 2017 年 1 月 31 日
@John: I could open multiple tabs in Matlab 5.3, R11 in 1999. So it must be a really very old version.
ludivine leclercq
ludivine leclercq 2017 年 1 月 31 日
I added details in my question

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2017 年 1 月 31 日
編集済み: Jan 2017 年 1 月 31 日

0 投票

Try to reset Matlab's preferences: Open prefdir in the file browser of the operating system, e.g. the Windows Explorer, then change to MathWorks\MATLAB\R2015b\. Now rename the file "MATLAB_Editor_State.xml" and restart Matlab. If this does not help, try "matlab.settings" or "matlab.prf". Sorry, this is pure guessing. It would be better to restore this folder from your backup to the state before the crash. Do not delete the files, because perhaps Matlab does not start anymore without them.
You do have a backup, don't you?

2 件のコメント

ludivine leclercq
ludivine leclercq 2017 年 1 月 31 日
編集済み: ludivine leclercq 2017 年 1 月 31 日
Thank you. But I tried to rename these files and it does not seem to change anything... No I don't thinks that I have the backup for that.
Jan
Jan 2017 年 1 月 31 日
Are you working on Windows? Did you try to restore the "previous version" of the folder in the explorer?
If nothing helps reinstall Matlab.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

タグ

質問済み:

2017 年 1 月 31 日

コメント済み:

Jan
2017 年 1 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by