| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Matrix.CopyContent
Copies the content of a matrix into another matrix.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Matrix | 15.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Matrix.CopyContent"; Matrix1; Matrix2 ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Matrix1 | The matrix reference number. | $matrix1 |
| Matrix2 | The matrix reference number. | $matrix2 |
Result
Returns OK or error.
Description
Copies the content of a matrix into another matrix.Replaces the content of the second one with the content of the first one. The destination is resized if needed.
Examples
Try it:
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"; 2; 2);
// copy content of first matrix to second
r = MBS( "Matrix.CopyContent"; matrix; matrix2 );
// output second matrix to check
csv = MBS("Matrix.CSV"; matrix2)
]; csv)
// 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"; 2; 2);
// copy content of first matrix to second
r = MBS( "Matrix.CopyContent"; matrix; matrix2 );
// output second matrix to check
csv = MBS("Matrix.CSV"; matrix2)
]; csv)
See also
Blog Entries
This function checks for a license.
Created 22nd May 2025, last changed 23th May 2025