Main Content

safetyAnalysisMgr.getOpenDocuments

Retrieve open spreadsheets in Safety Analysis Manager

Since R2023b

Description

spreadsheets = safetyAnalysisMgr.getOpenDocuments returns the open spreadsheets in the Safety Analysis Manager.

example

Examples

collapse all

Suppose that you load only one spreadsheet in the Safety Analysis Manager. The spreadsheet file is named mySpreadsheet, is saved in C:\myFolder, and contains two rows and two columns. Retrieve the Spreadsheet object of the open spreadsheet in the Safety Analysis Manager.

spreadsheet = safetyAnalysisMgr.getOpenDocuments
spreadsheet = 

  Spreadsheet with properties:

    FileName: 'C:\myFolder\mySpreadsheet.mldatx'
        Rows: 2
     Columns: 2
 Description: ''

Suppose that you load two spreadsheets in the Safety Analysis Manager. Retrieve the Spreadsheet objects of the spreadsheets.

spreadsheets = safetyAnalysisMgr.getOpenDocuments
spreadsheets = 

  1×2 Spreadsheet array with properties:

    FileName
    Rows
    Columns
    Description

Output Arguments

collapse all

Opened spreadsheets in the Safety Analysis Manager, returned as a Spreadsheet object array. The function arranges the spreadsheets in the array based on when the spreadsheets loaded. The first loaded spreadsheet corresponds to an index of 1, while the last loaded spreadsheet corresponds to the last index of the array.

Version History

Introduced in R2023b