MATLAB Help Center
Find rows in RequirementsTable object
RequirementsTable
Since R2026a
row = findRequirementRow(table,index)
row = findRequirementRow(table,summary)
row = findRequirementRow(table,index) returns the Requirements Table block row in the table, table, that has the index, index.
row
table
index
example
row = findRequirementRow(table,summary) returns the Requirements Table block row in the table, table, that has the summary, summary.
summary
collapse all
This example shows how to find a row with a specific index or summary in a RequirementsTable object.
Load the model.
model = "spec_model_final"; load_system(model);
Get the RequirementsTable object for the Requirements Table block, Cmd_Determination, in the model.
Cmd_Determination
table = slreq.modeling.find(model,"Cmd_Determination");
Find the requirement with the index 2.2.1.
2.2.1
reqRow1 = findRequirementRow(table,"2.2.1")
reqRow1 = RequirementRow with properties: Actions: {'0' ''} Duration: '' ChildEvaluation: 'independent' RowType: 'normal' Index: '2.2.1' Preconditions: {'' '' '[phi_neg_norm, phi_pos_norm]'} Postconditions: {''} Summary: 'Roll_Angle_Phi greater than neg_norm and less than pos_norm'
Find the requirement with the summary Roll_Angle_Phi less than -30.
Roll_Angle_Phi less than -30
reqRow2 = findRequirementRow(table,"Roll_Angle_Phi less than -30")
reqRow2 = RequirementRow with properties: Actions: {'TK_neg_extreme' ''} Duration: '' ChildEvaluation: 'independent' RowType: 'normal' Index: '2.2.3' Preconditions: {'' '' ' < phi_neg_extreme'} Postconditions: {''} Summary: 'Roll_Angle_Phi less than -30'
Requirements Table block, specified as a RequirementsTable object.
Requirement row index, specified as a string scalar or character vector.
Data Types: char | string
char
string
Requirement row summary, specified as a string scalar or character vector.
RequirementRow
Requirements Table block row, returned as a RequirementRow object.
Introduced in R2026a
slreq.Requirement
requirement
getRequirementRows
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
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office