putenv

Assigns the value of the environment variable x to value for the current session of the application.

Syntax

putenv(x, value)

Inputs

x
Environment variable name.
Type: string
value
Type: Any valid number.

Example

putenv('x', 'This is an example')
getenv('x')
ans = This is an example