MATLAB 도움말 센터
Get requirement from Requirements Table block requirement row
Since R2026a
req = requirement(row)
req = requirement(row) returns the requirement, req, that corresponds to the Requirements Table block row specified by row.
req
row
example
collapse all
This example shows how to get an slreq.Requirement object from a corresponding RequirementRow object.
slreq.Requirement
RequirementRow
Load the duration_column_example_model model.
duration_column_example_model
model = "duration_column_example_model"; load_system(model)
Find the Requirements Table block in the model.
table = slreq.modeling.find(model);
Get the requirement rows as an array of RequirementRow objects.
rows = getRequirementRows(table);
Get the slreq.Requirement object from the first row in the Requirements Table block.
reqRow = rows(1); req = requirement(reqRow)
req = Requirement with properties: Type: 'Functional' Id: '#2' Summary: 'Requirement 1' Description: 'Requirement 1' Keywords: {} Rationale: '' CreatedOn: 18-Mar-2022 12:54:04 CreatedBy: 'ssatinov' ModifiedBy: 'ssatinov' IndexEnabled: 1 IndexNumber: [] SID: 2 FileRevision: 1 ModifiedOn: 18-Mar-2022 12:54:04 Dirty: 0 Comments: [0×0 struct] Index: '1'
Requirement row in the Requirements Table block, specified as a RequirementRow object.
Requirement, specified as an slreq.Requirement object.
Introduced in R2026a
RequirementsTable
requirementRow
slreq.modeling.create
slreq.modeling.find
findRequirementRow
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 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의