MATLAB 帮助中心
类: slreq.Reference 命名空间: slreq
查找引用需求的父项
parentObj = parent(ref)
parentObj = parent(ref) 返回 slreq.Reference 对象 req 的父对象 parentObj。
parentObj
ref
slreq.Reference
req
全部展开
引用需求,指定为 slreq.Reference 对象。
slreq.ReqSet
引用需求 ref 的父项,以 slreq.Reference 对象或 slreq.ReqSet 对象形式返回。
% Load a requirement set file and find referenced requirements rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx'); refs = find(rs, 'Type', 'Reference') refs = 1×32 Reference array with properties: Keywords Artifact Id Summary Description SID Domain SynchronizedOn ModifiedOn % Find the parent of the first reference element parentRef1 = parent(refs(1)); parentRef1 = ReqSet with properties: Description: '' Name: 'My_Requirements_Set_1' Filename: 'C:\MATLAB\My_Requirements_Set_1.slreqx' Revision: 6 Dirty: 1 CustomAttributeNames: {}
在 R2018a 中推出
slreq.Reference | slreq.ReqSet | children
children
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处