MATLAB 帮助中心
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处