Matlab inherited environment when launched from command window
It has been my experience that Matlab inherits the dos environment when launched from a command window (or powershell).
e.g. open Command Prompt
c:UsersFoo> matlab
This does in fact work on 2 laptops Win10 and Win11. On a 3rd Win11 laptop however it does not seem to work. I did some workarounds within Matlab to get past that but I also found when I execute dos .bat from Matlab on that 3rd laptop, The dos window opened does not have the env from the original that I used to launch Matlab.
Is there a workaround? My searches came up dry.It has been my experience that Matlab inherits the dos environment when launched from a command window (or powershell).
e.g. open Command Prompt
c:UsersFoo> matlab
This does in fact work on 2 laptops Win10 and Win11. On a 3rd Win11 laptop however it does not seem to work. I did some workarounds within Matlab to get past that but I also found when I execute dos .bat from Matlab on that 3rd laptop, The dos window opened does not have the env from the original that I used to launch Matlab.
Is there a workaround? My searches came up dry. It has been my experience that Matlab inherits the dos environment when launched from a command window (or powershell).
e.g. open Command Prompt
c:UsersFoo> matlab
This does in fact work on 2 laptops Win10 and Win11. On a 3rd Win11 laptop however it does not seem to work. I did some workarounds within Matlab to get past that but I also found when I execute dos .bat from Matlab on that 3rd laptop, The dos window opened does not have the env from the original that I used to launch Matlab.
Is there a workaround? My searches came up dry. dos, environment, matlab MATLAB Answers — New Questions