Why is Matlab unable to change current folder?
142 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Chiara Pasquariello
le 14 Nov 2021
Commenté : Walter Roberson
le 2 Mar 2025 à 21:33
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 commentaire
Rik
le 15 Nov 2021
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.
Réponse acceptée
Plus de réponses (1)
Anshika Chourasia
le 3 Déc 2021
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 commentaire
Dyuman Joshi
le 5 Mar 2024
That is what OP is already using.
I don't see how your answer adds helps OP.
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!