# rowNames {#rownames}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`rowNames(X)`

## Arguments {#arguments}

**X** is a matrix.

## Details {#details}

Return the row names of matrix *X*. Please check related function: [columnNames](../c/columnNames.md).

## Examples {#examples}

```
x=1..6$2:3;
x
```

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

```
x.rename!(1 2, `a`b`c);
```

| |a|b|c|
|---|---|---|---|
|1|1|3|5|
|2|2|4|6|

```
rowNames x;
// output: [1,2]
```

