TRY NEW VERSION

MUNIT

MUNIT(arg1) → { number | string | boolean }

Returns the unit matrix for the specified dimension.

Parameters:

Name Type Description
arg1 number

Is an integer specifying the dimension of the unit matrix that you want to return.

Returns:

Type
number | string | boolean

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.MUNIT(3));
builder.SaveFile("xlsx", "MUNIT.xlsx");
builder.CloseFile();

Resulting document