Main Content


Retrieve column labels in spreadsheet in Safety Analysis Manager

Since R2023b



labels = getColumnLabels(spreadsheet) returns the column labels in the spreadsheet, spreadsheet, in the Safety Analysis Manager.


collapse all

Suppose that only one spreadsheet is loaded in the Safety Analysis Manager. Retrieve the Spreadsheet object of the spreadsheet.

mySpreadsheet = safetyAnalysisMgr.getOpenDocuments;

Return the spreadsheet column labels.

labels = getColumnLabels(mySpreadsheet);

Input Arguments

collapse all

Spreadsheet in the Safety Analysis Manager, specified as a Spreadsheet object.

Output Arguments

collapse all

Column labels in the spreadsheet, returned as a string array.

Version History

Introduced in R2023b