Azzera filtri
Azzera filtri

Multiple instances of MATLAB

6 visualizzazioni (ultimi 30 giorni)
Eric Schols
Eric Schols il 10 Feb 2016
Commentato: Eric Schols il 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.

Risposte (1)

Jan
Jan il 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 Commento
Eric Schols
Eric Schols il 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. :)

Accedi per commentare.

Categorie

Scopri di più su Debugging and Analysis in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by