# setenv

Set the value of an environment variable.

## Syntax

* getenv(env\_name, env\_value)

## Input argument

* env\_name - a string: environment variable name.
* env\_value - a string: environment variable value.

## Description

**setenv** set the value of an environment variable.

## Example

```matlab
setenv('MY_ENV_VAR', 'funvalue')
getenv('MY_ENV_VAR')
setenv('MY_ENV_VAR', '')
getenv('MY_ENV_VAR')
```

## See also

[getenv](getenv), [searchenv](searchenv).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
