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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ