Main Content

safetyAnalysisMgr.import

Import Excel file into Safety Analysis Manager

Since R2023b

Description

spreadsheet = safetyAnalysisMgr.import(fileName) imports the Excel® file, fileName, into the Safety Analysis Manager.

example

Examples

collapse all

Suppose that you have a Excel file named mySpreadsheet.xls that contains one spreadsheet. Import the spreadsheet into the Safety Analysis Manager and retrieve the associated Spreadsheet object.

mySpreadsheet = safetyAnalysisMgr.import("mySpreadsheet.xls");

Input Arguments

collapse all

Excel file name, specified as a string scalar or character vector. When specifying the file name, you must include the file extension. If the file is not in the current directory, specify the path and the file name.

Data Types: char | string

Output Arguments

collapse all

Imported Safety Analysis Manager spreadsheet, returned as a Spreadsheet object. You can view the spreadsheet by opening the Safety Analysis Manager with the safetyAnalysisMgr.openManager function.

Limitations

Version History

Introduced in R2023b