Main Content

safetyAnalysisMgr.openDocument

Open Safety Analysis Manager document

Since R2023b

Description

example

doc = safetyAnalysisMgr.openDocument(fileName) opens the Safety Analysis Manager document file, fileName. This function does not open the Safety Analysis Manager.

Examples

collapse all

Suppose you have a Safety Analysis Manager spreadsheet document named mySpreadsheet.mldatx that contains two rows and two columns. Open the spreadsheet.

document = safetyAnalysisMgr.openDocument("mySpreadsheet.mldatx")
document = 

  Spreadsheet with properties:

    FileName: 'mySpreadsheet.mldatx'
        Rows: 2
     Columns: 2
 Description: ''

Input Arguments

collapse all

File name to open, specified as a string scalar or character vector. The file must be a Safety Analysis Manager document file. When specifying the file name, you must include the .mldatx extension. If the file is not in the current directory, specify the path and the file name. The file must be on the MATLAB® search path.

Data Types: char | string

Output Arguments

collapse all

Opened document, returned as a Spreadsheet object.

Version History

Introduced in R2023b