Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Matrix.SetRowNames

Sets row names.

Component Version macOS Windows Linux Server iOS SDK
Matrix 12.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Matrix.SetRowNames"; MatrixRef; Names )   More

Parameters

Parameter Description Example
MatrixRef The matrix reference number. $matrix
Names The value list with the names. "1¶2¶3"

Result

Returns OK or error.

Description

Sets row names.
Overwrites the row names with the given list of values.

Examples

Name the rows of a matrix:

# one row per quarter
Set Variable [ $matrix ; Value: MBS( "Matrix.New"; 4; 3 ) ]
Set Variable [ $r ; Value: MBS( "Matrix.SetRowNames"; $matrix; "Q1¶Q2¶Q3¶Q4" ) ]
Set Variable [ $r ; Value: MBS( "Matrix.SetColumnNames"; $matrix; "Sales¶Costs¶Profit" ) ]
Set Variable [ $name ; Value: MBS( "Matrix.GetRowName"; $matrix; 3 ) ]
Set Variable [ $r ; Value: MBS( "Matrix.Release"; $matrix ) ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 9th October 2022, last changed 6th November 2026


Matrix.SetRowName - Matrix.SetValue


MarkDown version: MatrixSetRowNames.md