Main Content

deleteDocumentAttribute

Delete document attributes in spreadsheet in Safety Analysis Manager

Since R2023b

Description

example

deleteDocumentAttribute(spreadsheet,property) deletes the document attribute that has the property, property, from the spreadsheet in the Safety Analysis Manager, spreadsheet.

Examples

collapse all

Create a new spreadsheet in the Safety Analysis Manager.

mySpreadsheet = safetyAnalysisMgr.newSpreadsheet;

Add three document attributes to the spreadsheet by using the addDocumentAttribute function.

addDocumentAttribute(mySpreadsheet,property="myAttribute1",value="1")
addDocumentAttribute(mySpreadsheet,property="myAttribute2",value="2")
addDocumentAttribute(mySpreadsheet,property="myAttribute3",value="3")

Delete the attribute with the property, myAttribute1.

deleteDocumentAttribute(mySpreadsheet,"myAttribute1")

Input Arguments

collapse all

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

Property of the document attribute, specified as a string scalar or character vector. The argument must be an exact match.

Data Types: char | string

Version History

Introduced in R2023b