Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

Matrix.Resize

Resizes matrix to given height and width.

Component Version macOS Windows Linux Server iOS SDK
Matrix 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Matrix.Resize"; MatrixRef; Height; Width )   More

Parameters

Parameter Description Example
MatrixRef The matrix reference number. $matrix
Height The height of the matrix. 3
Width The width of the matrix. 4

Result

Returns OK or error.

Description

Resizes matrix to given height and width.

Examples

Try resize:

Set Variable [ $matrix ; Value: MBS( "Matrix.New"; 3; 4 ) ]
Set Variable [ $r ; Value: MBS( "Matrix.Resize"; $matrix; 7; 8 ) ]
Show Custom Dialog [ "Size" ; MBS( "Matrix.Width"; $matrix ) & " x " & MBS( "Matrix.Height"; $matrix ) ]
Set Variable [ $r ; Value: MBS( "Matrix.Release"; $matrix ) ]

Resizes a matrix:

Set Variable [ $r; Value: MBS( "Matrix.Resize"; $matrix; 3; 4 ) ]

See also

Created 8th April 2019, last changed 2nd November 2020


Matrix.RemoveRow - Matrix.SetColumn

Feedback: Report problem or ask question.