# Construct Matrix

![](https://894783789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPHXQ1I3gb93zpLrLZf%2Fuploads%2Fgit-blob-12c65e50b802c071114a01529b6a91382161a171%2FConstruct_Matrix.png?alt=media)

![](https://894783789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPHXQ1I3gb93zpLrLZf%2Fuploads%2Fgit-blob-04fb19a032a6b850dcc37e73ab43d399141584e8%2FConstruct_Matrix.png?alt=media) - [\[source code\]](https://github.com/ladybug-tools/ladybug-grasshopper/blob/master/ladybug_grasshopper/src/LB%20Construct%20Matrix.py)

Construct a Ladybug Matrix object from a Grasshopper Data Tree of values.

### Inputs

* **values \[Required]**

A Grasshopper Data Tree of values to be merged into a matrix object.

### Outputs

* **matrix**

A Ladybug Matrix object encapsulating all of the input values.
