Main Content

setDocumentAttribute

Set document attributes in spreadsheet in Safety Analysis Manager

Since R2023b

Description

example

setDocumentAttribute(spreadsheet,property,value) sets the value, value, of the document attribute with the property property in the Safety Analysis Manager spreadsheet, spreadsheet.

Examples

collapse all

Create a new spreadsheet in the Safety Analysis Manager.

mySpreadsheet = safetyAnalysisMgr.newSpreadsheet;

Add a document attribute to the spreadsheet by using the addDocumentAttribute function.

addDocumentAttribute(mySpreadsheet,property="myAttribute1")

Set the attribute value to 100.

setDocumentAttribute(mySpreadsheet,"myAttribute1","100")

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.

Data Types: char | string

Value of the document attribute, specified as a string scalar or character vector.

Data Types: char | string

Version History

Introduced in R2023b