Main Content

unlock

Class: slreq.Reference
Namespace: slreq

Unlock referenced requirements

Syntax

unlock(ref)

Description

unlock(ref) unlocks a referenced requirement for editing.

Input Arguments

expand all

Referenced requirement to unlock, specified as an slreq.Reference object.

Examples

Unlock an Imported Referenced Requirement

% Load a requirement set file
rs = slreq.load('C:\MATLAB\My_Requirement_Set_1.slreqx');

% Find all referenced requirements in the requirement set
allRefs = find(rs, 'Type', 'Reference')

allRefs = 

  1×73 Reference array with properties:

    Id
    CustomId
    Artifact
    ArtifactId
    Domain
    UpdatedOn
    CreatedOn
    CreatedBy
    ModifiedBy
    IsLocked
    Summary
    Description
    Rationale
    Keywords
    Type
    SID
    FileRevision
    ModifiedOn
    Dirty
    Comments

% Unlock a referenced requirement 
unlock(allRefs(25))

Version History

Introduced in R2019a

See Also