Main Content

save

Save spreadsheet in Safety Analysis Manager

Since R2023b

Description

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

example

Examples

collapse all

Create a new spreadsheet in the Safety Analysis Manager.

mySpreadsheet = safetyAnalysisMgr.newSpreadsheet;

Add three rows to the spreadsheet.

addRow(mySpreadsheet,Count=3)

Add a text and check box column to the spreadsheet.

addColumn(mySpreadsheet,Count=2,Type=["text","checkbox"])

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.

save(mySpreadsheet,"myNewSpreadsheet.mldatx")

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