# cummin {#cummin}

## Syntax {#syntax}

`cummin(X)`

Please see [Cumulative Window Functions](../Themes/cumFunctions.md) for the parameter description and windowing logic.

## Details {#details}

Cumulatively calculate the minimum values in *X*.

## Examples {#examples}

```
x = [7,4,5,NULL,9]
cummin(x);
// output: [7,4,4,4,4]

m = matrix(6 5 7 8 1, 3 9 4 2 10);
m;
```

|\#0|\#1|
|---|---|
|6|3|
|5|9|
|7|4|
|8|2|
|1|10|

```
cummin(m);
```

|\#0|\#1|
|---|---|
|6|3|
|5|3|
|5|3|
|5|2|
|1|2|

Related functions:[cummax](cummax.md), [min](../m/min.md)

