MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
类: slreq.Justification 命名空间: slreq
查找申述的父项
parentObj = parent(jt)
parentObj = parent(jt) 返回 slreq.Justification 对象 jt 的父对象 parentObj。
parentObj
jt
slreq.Justification
全部展开
申述,指定为 slreq.Justification 对象。
slreq.ReqSet
申述 jt 的父项,以 slreq.Justification 对象或 slreq.ReqSet 对象形式返回。
% Load a requirement set file and find justification objects rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx'); myJustifications = find(rs, 'Type', 'Justification') myJustifications = 1×13 Justification array with properties: Id Summary Description Keywords Rationale CreatedOn CreatedBy ModifiedBy SID FileRevision ModifiedOn Dirty Comments % Find the parent of the first justification object parentJust1 = parent(myJustifications(1)) parentJust1 = ReqSet with properties: Description: '' Name: 'My_Requirements_Set_1' Filename: 'C:\MATLAB\My_Requirements_Set_1.slreqx' Revision: 6 Dirty: 1 CustomAttributeNames: {} % Find the parent of the third justification object parentJust3 = parent(myJustifications(3)) parentJust3 = Justification with properties: Id: 'J1' Summary: 'Justifications' Description: '' Keywords: [0×0 char] Rationale: '' CreatedOn: 27-Feb-2014 10:15:38 CreatedBy: 'Jane Doe' ModifiedBy: 'John Doe' SID: 35 FileRevision: 11 ModifiedOn: 02-Aug-2017 13:49:40 Dirty: 1 Comments: [0×0 struct]
在 R2018b 中推出
children | demote | promote
children
demote
promote
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处