> For the complete documentation index, see [llms.txt](https://docs.ladybug.tools/ladybug-primer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ladybug.tools/ladybug-primer/components/4_extra/construct_matrix.md).

# Construct Matrix

![](/files/-MihilB0SW7mE8tZGkvp)

![](/files/-MihilB1H3ObjMT21x9w) - [\[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.
