Opening multiple instances of MATLAB causes endless folder access errors
Show older comments
Whenever I try to open two instances of MATLAB, I run into an endless loop of error windows. For example, if I'm running 2022b and I try to start an instance of 2021b, I get this popup message:
“MATLAB_R2021b” would like to access files in your Documents folder.
When I click OK, I get this popup message:
“MATLAB_R2022b” would like to access files in your Documents folder.
When I click OK, I get this popup message:
“MATLAB_R2021b” would like to access files in your Documents folder.
When I click OK, I get this popup message:
“MATLAB_R2022b” would like to access files in your Documents folder.
When I click OK, I get this popup message:
“MATLAB_R2021b” would like to access files in your Documents folder.
When I click OK, I get this popup message:
“MATLAB_R2022b” would like to access files in your Documents folder.
...and so on.
I'm using a Mac OS Monterey 12.6.1.
Does anyone know how to fix this?
5 Comments
Miguel Garcia-Valenzuela
on 27 Aug 2023
Hi Chad!
Did you manage to solve this issue? I'm having the same problem with the 2 Matlab versions (R2019a and R2022a) installed on my Mac using Big Sur 11.7.9.
Chad Greene
on 27 Aug 2023
Karthik Reddy Lyathakula
on 24 Mar 2024
Edited: Karthik Reddy Lyathakula
on 24 Mar 2024
@MathWorks Support Team Did you have a solution for this? I am also facing the same issue on MAC when two versions of MATLAB are open at the same time.
Mohammad
on 3 Apr 2024
same isuee
Margot
on 28 Jan 2025
I have the same issue with matlab 2022b and 2024b. Is there a solution yet?
Answers (1)
Jan
on 17 Nov 2022
0 votes
What about allowing Matlab to access your documents folder?
5 Comments
Chad Greene
on 17 Nov 2022
Jan
on 18 Nov 2022
I assume, that starting up Matlab accesses the settings files in the user's Documents folder. If a setting is changes, this might trigger the other instance of Matlab.
I did not meant to allow the access once, but in general. This should be a task for the operating system. Try the control panel for data protrection and security and allow both Matlab versions accessing your Documents folder.
Chad Greene
on 18 Nov 2022
Jan
on 18 Nov 2022
This sounds very strange. It should be possible to gain access to several applications.
Which folders inside the Documents folder are concerned?
Chad Greene
on 18 Nov 2022
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!