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 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의