using of cd command

45 views (last 30 days)
Joel
Joel on 12 Apr 2024 at 20:46
Edited: Cris LaPierre on 13 Apr 2024 at 14:02
hello am using matlab on line and i use cd command to call a fil in matalab from my c drive but it show me "Error using cd
Unable to change current folder to '/MATLAB Drive/C:\Users\FUTURA TECH HUB\Downloads\Nouveau dossier' (Name is nonexistent or not a folder)."
  1 Comment
Matt J
Matt J on 12 Apr 2024 at 21:46
Edited: Matt J on 12 Apr 2024 at 21:47
What is the correct folder path you are trying to go to? What input did you give cd()?
It seems pretty clear that the path ''/MATLAB Drive/C:\Users\FUTURA TECH HUB\Downloads\Nouveau dossier'' won't exist.

Sign in to comment.

Answers (1)

Cris LaPierre
Cris LaPierre on 13 Apr 2024 at 1:55
Edited: Cris LaPierre on 13 Apr 2024 at 14:02
In MATLAB Online, the root folder is /MATLAB Drive/. The file system of MATLAB Online is MATLAB Drive.
The only way to access a local file in your MATLAB Online session is to store it in your local MATLAB Drive folder and sync this to the cloud by installing MATLAB Drive Connector. See Access Files in Your MATLAB Drive
You can then use the command matlabdrive to build a dynamic path to your file that will work in both desktop and online sessions.
Otherwise, you will need to first upload the file to MATLAB Online by dragging and dropping the file into your current folder.
You may also find the Access Files in MATLAB Online page helpful.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!