I have recently installed MATLAB R2021b, and I am facing a problem that I have not had before (with other MATLAB versions).
I have realised that when running two instances of MATLAB with the same script, MATLAB stops with a "Operation terminated by user" message. Of note, the script is the same but slightly modified, e.g. modifying one line like this
files_path = "D:\Path\To\Files\FolderA"
files_path = "D:\Path\To\Files\FolderB"
The first MATLAB instance runs with no problem, but just when running the second instance, the first one stops with the "Operation terminated by user" message. By investigating a bit more, I have realised that it seems to be related with modifying the script and saving it, not with running the script itself (remember that when a script is ran, it is automatically saved). I also think that it is probably related with having the first instance minimized or maximized in background....
Its a bit difficult to assess this problem, as it do not always happen, and repeating the same actions some times yield to an error and others do not (it throws the error about a 50% of the times).
PS: I think that is not related with the function that MATLAB runs.
Does anybody knows something about this issue?
Thank you in advance.