promote
类: slreq.Justification
命名空间: slreq
提升申述
语法
promote(jt)
说明
promote( 将 jt)slreq.Justification 对象 jt 在层次结构中提升一级。
输入参数
申述,指定为 slreq.Justification 对象。
示例
% Load a requirement set file and find justification objects rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx'); allJusts = find(rs, 'Type', 'Justification') allJusts = 1×20 Justification array with properties: Id Summary Description Keywords Rationale CreatedOn CreatedBy ModifiedBy SID FileRevision ModifiedOn Dirty Comments jt1 = allJusts(1); % Find the children of jt1 childJusts = children(jt1) childJusts = 1×10 Justification array with properties: Id Summary Description Keywords Rationale CreatedOn CreatedBy ModifiedBy SID FileRevision ModifiedOn Dirty Comments % Promote the first child of jt1 promote(childJusts(1)); % Find the parent of childJusts(1) parentJustification = parent(childJusts(1)) parentJustification = ReqSet with properties: Description: '' Name: 'My_Requirements_Set_1' Filename: 'C:\MATLAB\My_Requirements_Set_1.slreqx' Revision: 81 Dirty: 1 CustomAttributeNames: {}
版本历史记录
在 R2018b 中推出
MATLAB Command
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)