# Matrix Model

### **Matrix Model**

![](/files/XraPwI9EDc5WdibqNDuC)

The direction can be defined as horizontal (the most common) or vertical. The ‘# Strings’ refers to the number of controller connections of the matrix. The Nodes/String refers to the number of nodes in each string. The 'Strands/String' is the number of 'rows' or zigzags per string. With AC lights ‘# Strings’ is the number of channels the Lights/string is the lights per string.

The starting location indicates where the matrix is connected to the controller (or where channel 1 of the matrix is).

<figure><img src="/files/ohivr64heqvHUtW9oa3o" alt=""><figcaption></figcaption></figure>

Above is an example of a horizontal matrix with 16 rows and 50 pixels per row. &#x20;

<figure><img src="/files/ZZ7jg29MviyZztLJLG13" alt=""><figcaption></figcaption></figure>

If the **Strands/String** is set to '2' it will add a zigzag and there will be 32 rows with 25 pixels per row.

<figure><img src="/files/z6qkN4v4yx6g2SPF6oeL" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/hYlxCxQgtAiVByyCjev0" alt=""><figcaption></figcaption></figure>

**Alternate Nodes** will "hop" every other node down and back to have the string start and stop at the same location.

<figure><img src="/files/Rjr9RnqJEyZxODSMxK9a" alt=""><figcaption></figcaption></figure>

### Don't Zig Zag

When Enabled all strands will start at the bottom and end at the top or start at left and end at the right. The strands normally "fold" or zigzag at the top and/or bottom.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.xlights.org/xlights/chapters/chapter-four-tabs/models/matrix-model.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
