MATLAB could not access ( and set) startup directory when executed within WSL

10 ビュー (過去 30 日間)
Atin
Atin 2022 年 8 月 22 日
回答済み: Atin 2022 年 8 月 26 日
I have MATLAB installed on Windows 10. And I am trying to exceute a script from WSL by passing the startup folder as - '/mnt/c/Users/Nutzer/Downloads'.
I am getting below error msg -
xxxx@DESKTOP:/mnt/c/Windows/system32$ matlab -sd /mnt/c/Users/Nutzer/Downloads -batch file_name
Warning: "/mnt/c/Users/Nutzer/Downloads" selected using the -sd startup option could not be accessed.
Using "C:\Windows\system32" as the initial working folder instead.
Unrecognized function or variable 'file_name'.
ERROR: MATLAB error Exit Status: 0x00000001
How can I access this folder?

採用された回答

Atin
Atin 2022 年 8 月 26 日
It worked after entering the path as "C:\Users\Nutzer\Downloads".

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by