Main Content

SpreadsheetRow

Spreadsheet row in Safety Analysis Manager

Since R2024b

Description

SpreadsheetRow objects represent spreadsheet rows in the Safety Analysis Manager. Use SpreadsheetRow objects to configure spreadsheet rows you use for safety analyses.

Creation

To create a SpreadsheetRow object,

Properties

expand all

This property is read-only.

Row index in the spreadsheet, returned as a positive integer. The first row has the index 1.

Data Types: uint64

This property is read-only.

Number of cells in the row, returned as a positive integer. To add cells to the row, add columns by using the addColumn function on the Spreadsheet object. To remove cells from the row, delete columns by using the deleteColumn function on the Spreadsheet object.

Data Types: uint64

Spreadsheet row description, specified as a string scalar or character vector.

Data Types: char | string

Object Functions

acceptAllChangesAccept detected changes to linked artifacts in Safety Analysis Manager
addFlagAdd flag to Safety Analysis Manager spreadsheet cell or row
clearFlagsClear flags in Safety Analysis Manager spreadsheet
getChangesGet changed artifacts linked to artifacts in Safety Analysis Manager
getCellRetrieve spreadsheet cells
getFlagsRetrieve flags from Safety Analysis Manager spreadsheets
getLinksGet links associated with spreadsheet cell or row in Safety Analysis Manager
getSpreadsheetRetrieve spreadsheet containing specified cell

Examples

collapse all

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

mySpreadsheet = safetyAnalysisMgr.getOpenDocuments;

Retrieve the second row as a SpreadsheetRow object.

myRow = getRow(mySpreadsheet,2);

Add a check flag to the row.

addFlag(myRow,"check");

Limitations

  • The SpreadsheetRow objects that you use in derived column formulas are read-only.

Version History

Introduced in R2024b