Main Content


Save spreadsheet in Safety Analysis Manager

Since R2023b



save(spreadsheet,fileName) saves the Safety Analysis Manager spreadsheet, spreadsheet, to the file name fileName.


collapse all

Create a new spreadsheet in the Safety Analysis Manager.

mySpreadsheet = safetyAnalysisMgr.newSpreadsheet;

Add three rows to the spreadsheet.


Add a text and check box column to the spreadsheet.


Update the labels of the new columns.

setColumnLabel(mySpreadsheet,2,"text column");
setColumnLabel(mySpreadsheet,3,"checkbox column");

Save the spreadsheet with the name myNewSpreadsheet to the current folder.


Input Arguments

collapse all

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

File name of the spreadsheet file, specified as a string scalar or character vector. When specifying the spreadsheet file name, you must include the .mldatx extension. If you do not want to save the file in the current directory, specify the path and the file name.

Data Types: char | string

Version History

Introduced in R2023b