MATLAB could not access folder outside WSL when running in WSL

AJ 1 Reputation point

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 it be accessible to MATLAB within WSL?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,582 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,341 Reputation points

    Hello there,

    The right platform to get this answered would be the MATLAB forum. You can collect the logs in WSL for better troubleshooting of this issue.

    Please make sure that virtualization is enabled inside of your computer's BIOS. The instructions on how to do this will vary from computer to computer, and will most likely be under CPU related options.


    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments