Main Content

本页采用了机器翻译。点击此处可查看英文原文。

remove

类: slreq.Justification
命名空间: slreq

删除申述项

语法

count = remove(jt, 'PropertyName', PropertyValue)

说明

count = remove(jt, 'PropertyName', PropertyValue) 删除属于父申述jt 的子申述项,并附加由 PropertyNamePropertyValue 指定的属性。以 count 形式返回已删除的项目数。

输入参数

全部展开

父级申述,指定为 slreq.Justification 对象。

输出参量

全部展开

删除的申述项的数量,以双精度形式返回。

示例

删除申述项目

加载需求集文件。

rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');
在需求集查找申述对象。
myJustifications = find(rs, 'Type', 'Justification')
myJustifications = 

  1×10 Justification array with properties:

    Id
    Summary
    Description
    Keywords
    Rationale
    CreatedOn
    CreatedBy
    ModifiedBy
    SID
    FileRevision
    ModifiedOn
    Dirty
    Comments
删除 Jane Doe 创建的其中一个申述对象。
count = remove(myJustifications(1), 'CreatedBy', 'Jane Doe')
count = 
  
  1

版本历史记录

在 R2018b 中推出

另请参阅