Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Matrix.Append
Appends second matrix to first one.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Matrix | 15.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
Matrix1 | The matrix reference number. | $matrix1 |
Matrix2 | The matrix reference number. | $matrix2 |
Result
Returns OK or error.
Description
Appends second matrix to first one.Source and destination can be the same and then we duplicate all rows on the end.
The width of both matrices should be the same, but doesn’t need to be.
Examples
Appends a matrix to another:
Let([
// new matrix
matrix = MBS("Matrix.New"; 3; 4);
// add some content
r = MBS( "Matrix.SetRow"; matrix; 0; "00¶01¶02¶03" );
r = MBS( "Matrix.SetRow"; matrix; 1; "10¶11¶12¶13" );
r = MBS( "Matrix.SetRow"; matrix; 2; "20¶21¶22¶23" );
// creates a second matrix
matrix2 = MBS("Matrix.New"; 1; 4);
r = MBS( "Matrix.SetRow"; matrix2; 0; "a¶b¶c¶d" );
// copy content of first matrix to second
r = MBS( "Matrix.Append"; matrix; matrix2 );
// output matrix to check
csv = MBS("Matrix.CSV"; matrix)
]; csv)
Example result:
00;01;02;03
10;11;12;13
20;21;22;23
a;b;c;d
See also
Release notes
- Version 15.3
- Added Matrix.Append function.
Blog Entries
This function checks for a license.
Created 23th May 2025, last changed 23th May 2025
