Build Matrix VI
- Updated2023-02-21
- 7 minute(s) read
Build Matrix VI
Owning Palette: Matrix VIs
Requires: Multicore Analysis and Sparse Matrix Toolkit
Builds four sparse matrices by column and then by row.
Build Sparse Matrix (DBL)

![]() |
A specifies the first sparse matrix. The number of rows in A must be equal to the number of rows in B. The number of columns in A must be equal to the number of columns in C. |
![]() |
B specifies the second sparse matrix. The number of rows in B must be equal to the number of rows in A. The number of columns in B must be equal to the number of columns in D. |
![]() |
C specifies the third sparse matrix. The number of rows in C must be equal to the number of rows in D. The number of columns in C must be equal to the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
D specifies the fourth sparse matrix. The number of rows in D must be equal to the number of rows in C. The number of columns in D must be equal to the number of columns in B. |
![]() |
Appended Matrix returns the appended sparse matrix of A, B, C, and D. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Build Sparse Matrix (SGL)

![]() |
A specifies the first sparse matrix. The number of rows in A must be equal to the number of rows in B. The number of columns in A must be equal to the number of columns in C. |
![]() |
B specifies the second sparse matrix. The number of rows in B must be equal to the number of rows in A. The number of columns in B must be equal to the number of columns in D. |
![]() |
C specifies the third sparse matrix. The number of rows in C must be equal to the number of rows in D. The number of columns in C must be equal to the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
D specifies the fourth sparse matrix. The number of rows in D must be equal to the number of rows in C. The number of columns in D must be equal to the number of columns in B. |
![]() |
Appended Matrix returns the appended sparse matrix of A, B, C, and D. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Build Sparse Matrix (CDB)

![]() |
A specifies the first sparse matrix. The number of rows in A must be equal to the number of rows in B. The number of columns in A must be equal to the number of columns in C. |
![]() |
B specifies the second sparse matrix. The number of rows in B must be equal to the number of rows in A. The number of columns in B must be equal to the number of columns in D. |
![]() |
C specifies the third sparse matrix. The number of rows in C must be equal to the number of rows in D. The number of columns in C must be equal to the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
D specifies the fourth sparse matrix. The number of rows in D must be equal to the number of rows in C. The number of columns in D must be equal to the number of columns in B. |
![]() |
Appended Matrix returns the appended sparse matrix of A, B, C, and D. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Build Sparse Matrix (CSG)

![]() |
A specifies the first sparse matrix. The number of rows in A must be equal to the number of rows in B. The number of columns in A must be equal to the number of columns in C. |
![]() |
B specifies the second sparse matrix. The number of rows in B must be equal to the number of rows in A. The number of columns in B must be equal to the number of columns in D. |
![]() |
C specifies the third sparse matrix. The number of rows in C must be equal to the number of rows in D. The number of columns in C must be equal to the number of columns in A. |
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. |
![]() |
D specifies the fourth sparse matrix. The number of rows in D must be equal to the number of rows in C. The number of columns in D must be equal to the number of columns in B. |
![]() |
Appended Matrix returns the appended sparse matrix of A, B, C, and D. |
![]() |
error out contains error information. This output provides standard error out functionality. |
Build Matrix Details
The following table lists the support characteristics of this VI.
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | No |
Let A be an m-by-n matrix, B an n-by-q matrix, C a p-by-n matrix, and D a p-by-q matrix. LabVIEW returns H, the appended matrix of A, B, C, and D by completing the following steps.
- Concatenate A and B by column to get matrix F.
- Concatenate C and D by column to get matrix G.
- Concatenate F and G by row to get matrix H.
H is a (m+p)-by-(n+q) matrix.




