AddflagtoSafetyAnalysisManagerspreadsheetcellorrow
SinceR2023b
CreateanewSafetyAnalysisManagerspreadsheet.
mySpreadsheet=safetyAnalysisMgr.newSpreadsheet;Addtwotextcolumnsandtworowstothespreadsheet.
addRow(mySpreadsheet,Count=2)addColumn(mySpreadsheet,Count=2)RetrievetheSpreadsheetCellobjectsforthecellsinthesecondcolumn.
forn=1:mySpreadsheet.RowsmyCells(n)=getCell(mySpreadsheet,n,2);endAddawarningflagtothecellsinthefirstandsecondrowofthesecondcolumn.
addRow(mySpreadsheet,Count=2)addColumn(mySpreadsheet,Count=2)RetrievetheSpreadsheetRowobjectsfortherows
forn=1:mySpreadsheet.RowsmyRows(n)=getRow(mySpreadsheet,n);endAddawarningflagtothefirstandsecondrows.
CellintheSafetyAnalysisManagerspreadsheet,specifiedasaSpreadsheetCellobject.
SinceR2024b
RowintheSafetyAnalysisManagerspreadsheet,specifiedasaSpreadsheetRowobject.
Typeofflag,specifiedasoneofthesevalues:
Createsanerrorflag.Cellsandrowswithanerrorflagdisplaytheerroricon.
Createsawarningflag.Cellsandrowswithawarningflagdisplaythewarningicon.
Createsacheckflag.Cellsandrowswithacheckflagdisplaythecheckicon.
DataTypes:enumeration
SpecifyoptionalpairsofargumentsasName1=Value1,...,NameN=ValueN,whereNameistheargumentnameandValueisthecorrespondingvalue.Name-valueargumentsmustappearafterotherarguments,buttheorderofthepairsdoesnotmatter.
Flagdescription,specifiedasastringscalarorcharactervector.
DataTypes:char|string
Flagtag,specifiedasastringscalarorcharactervector.
AddflagstospreadsheetrowsbyusingtheaddFlagfunctiononSpreadsheetRowobjects.
Youcanalsoselectawebsitefromthefollowinglist
HowtoGetBestSitePerformance
SelecttheChinasite(inChineseorEnglish)forbestsiteperformance.OtherMathWorkscountrysitesarenotoptimizedforvisitsfromyourlocation.