using of cd command

8 次查看(过去 30 天)
Joel
Joel 2024-4-12
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 个评论
Matt J
Matt J 2024-4-12
编辑:Matt J 2024-4-12
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.

请先登录,再进行评论。

回答(1 个)

Cris LaPierre
Cris LaPierre 2024-4-13
编辑:Cris LaPierre 2024-4-13
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.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by