Multiple instances of MATLAB

4 views (last 30 days)
Eric Schols
Eric Schols on 10 Feb 2016
Commented: Eric Schols on 10 Feb 2016
How does MATLAB deal with working in the same file in different instances of MATLAB?
Say I open it twice and alter some file in one instance, do the changes show in the other instance? What if I change the same file in both instances, which changes will I see? Or will this result in conflicted copies?
Cheers.

Answers (1)

Jan
Jan on 10 Feb 2016
You can simply try it.
The changes in the files are written to the disk, if you save the file. You can set a flag in the preferences, to update files opened in the editor automatically, if they are changed on the disk.
But editing on a file from different applications is a source of confusion. I suggest to avoid this strictly. While Matlab works consistently with such situations, the human in front of the computer tends to get nervous.
  1 Comment
Eric Schols
Eric Schols on 10 Feb 2016
Thanks. It was indeed mostly out of curiosity that I asked, normally I have at most one instance opened :)
I agree with your first sentence. But since I already had two instances running scripts, I didn't want to bother opening additional onces and try myself. Anyway, thank you for your answer. :)

Sign in to comment.

Categories

Find more on Debugging and Analysis in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!