Why is Matlab unable to change current folder?
100 次查看(过去 30 天)
显示 更早的评论
I have just downloaded R2021b version of Matlab, but I have problems with the folders. When I run it, the initial folder is that of my User, from where I try to open the Desktop, where all my old files are saved. A message appears stating
"Error using cd
Unable to change current folder to '/Users/Cuchaira/Desktop'."
How can I solve the problem?
1 个评论
Rik
2021-11-15
How exactly are you trying to change the current folder? The error looks like you are using windows, and forgot C: and are using the wrong slashes.
采纳的回答
Chiara Pasquariello
2021-12-4
2 个评论
Sabine Kling
2022-1-19
I am having the same issue. How did you permit Matlab to access all files on the Mac?
Joshua Carmichael
2022-10-22
Hi Sabine:
- Go to system preferences.
- Select Security and Privacy
- On the top menu ribbon within Security and Privacy, select Privacy
- Unlock with admin account and password so you can make changes/ select applications.
- Select Matlab. Allow full disk access from left menu.
- Allow matlab to restart.
- Relock the lock button on the lower left.
- Now Matlab should have full disk access. See below.
更多回答(1 个)
Anshika Chourasia
2021-12-3
Hi Chiara,
For changing the current folder “cd” command is used. Please refer the following link for more details: Change current folder - MATLAB cd (mathworks.com).
1 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!