# Documentation

### This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English verison of the page.

# `stats`::`unzipCol`

Extract columns from a list of lists

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

## Syntax

```stats::unzipCol(`list`)
```

## Description

`stats::unzipCol` extracts the columns of a matrix structure encoded by a list of lists.

`stats::unzipCol` treats a list of lists like a list of rows of a `stats::sample` and extracts the columns. In conjunction with `stats::sample2list` it is useful for extracting the columns of a `stats::sample`.

`stats::unzipCol` is the inverse of `stats::zipCol`.

## Examples

### Example 1

We extract the columns from a list of rows representing a matrix structure:

`stats::unzipCol([[a11, a12], [a21, a22], [a31, a32]])`

### Example 2

A list of rows is used to create a sample:

`stats::sample([[123, s, 1/2], [442, s, -1/2], [322, p, -1/2]])`
```123 s 1/2 442 s -1/2 322 p -1/2 ```

We re-convert the sample to a list of lists:

`stats::sample2list(%)`

Finally, we extract the columns:

`stats::unzipCol(%)`

## Parameters

 `list` A list of lists.

## Return Values

Sequence of lists to be regarded as columns.