On UNIX® platforms, the shell you use to start MATLAB® determines the operating system environment. For example,
starting MATLAB on a Mac platform from the
Applications folder creates a
different shell environment from starting MATLAB from Terminal.
res = getenv('SYSTEMROOT')
res = 'C:\windows'
name— Environment variable name
Environment variable name, specified as a string or a character vector.
backgroundPoolor accelerate code with Parallel Computing Toolbox™
This function fully supports thread-based environments. For more information, see Run MATLAB Functions in Thread-Based Environment.