Main Content

deleteRow

Delete row in spreadsheet in Safety Analysis Manager

Since R2023b

Description

deleteRow(spreadsheet,index) deletes the row in the specified spreadsheet in the Safety Analysis Manager that has the index index.

example

Examples

collapse all

Create a new spreadsheet in the Safety Analysis Manager.

mySpreadsheet = safetyAnalysisMgr.newSpreadsheet;

Add three rows to the spreadsheet.

addRow(mySpreadsheet,Count=3)

Delete the third row.

deleteRow(mySpreadsheet,3)

Input Arguments

collapse all

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

Index of the row to delete, specified as a positive integer. The row index of the topmost row of the spreadsheet is 1. To find the number or rows in the spreadsheet, retrieve the Rows property of the Spreadsheet object.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

Version History

Introduced in R2023b