Help CenterHelp Center
Retrieve flags from Safety Analysis Manager spreadsheets
Since R2023b
flags = getFlags(spreadsheet)
flags = getFlags(cell)
example
flags = getFlags(spreadsheet) returns the flags in the specified Safety Analysis Manager spreadsheet.
flags
spreadsheet
flags = getFlags(cell) returns the flags in a spreadsheet cell.
cell
collapse all
Create a new Safety Analysis Manager spreadsheet.
mySpreadsheet = safetyAnalysisMgr.newSpreadsheet;
Add two text columns and two rows to the spreadsheet.
addRow(mySpreadsheet,Count=2) addColumn(mySpreadsheet,Count=2)
Retrieve the SpreadsheetCell objects for the cells in the second column.
SpreadsheetCell
for n = 1:mySpreadsheet.Rows myCells(n) = getCell(mySpreadsheet,n,2); end
Add a warning flag to the cells in the first and second row of the second column.
addFlag(myCells(1),"warning") addFlag(myCells(2),"warning")
Retrieve the flags in the spreadsheet.
myFlags = getFlags(mySpreadsheet);
Retrieve the flags from the cell in the first row.
myFlags = getFlags(myCells(1));
Spreadsheet
Spreadsheet in the Safety Analysis Manager, specified as a Spreadsheet object.
Cell in the Safety Analysis Manager spreadsheet, specified as a SpreadsheetCell object.
DocumentFlag
Spreadsheet or spreadsheet cell flags, returned as a DocumentFlag object array.
Introduced in R2023b
addFlag
clearFlags
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office