Main Content

slreq.new

Create requirement set

Description

example

newReqSet = slreq.new(reqSetName) creates a requirement set newReqSet with the name specified by reqSetName in the current working folder.

example

newReqSet = slreq.new(reqSetPath) creates a requirement set newReqSet in the folder specified by reqSetPath.

Note

The folder specified by reqSetPath must exist on disk.

Examples

collapse all

% Create requirement set in current working folder
myReqSet1 = slreq.new('New_Req_Set_1')

myReqSet1 = 

  ReqSet with properties:

             Description: ''
                    Name: 'New_Req_Set_1'
                Filename: 'L:\New_Req_Set_1.slreqx'
                Revision: 1
                   Dirty: 1
    CustomAttributeNames: {}
               CreatedBy: 'John Doe'
               CreatedOn: 18-Feb-2008 20:54:52
              ModifiedBy: 'Jane Doe'
              ModifiedOn: 20-Jan-2016 12:44:12

% Create requirement set in a different directory
myReqSet2 = slreq.new('L:\Reqs_Work\New_Req_Set_2')

myReqSet2 = 

  ReqSet with properties:

             Description: ''
                    Name: 'New_Req_Set_2'
                Filename: 'L:\Reqs_Work\New_Req_Set_2.slreqx'
                Revision: 1
                   Dirty: 1
    CustomAttributeNames: {}
               CreatedBy: 'Jane Doe'
               CreatedOn: 11-Jan-2009 11:33:01
              ModifiedBy: 'John Doe'
              ModifiedOn: 18-Jan-2018 09:07:32

Input Arguments

collapse all

Name of the requirement set to create, specified as a character vector.

Folder to create requirement set in, specified as a character vector.

Output Arguments

collapse all

The created requirement set, specified as an slreq.ReqSet object.

Version History

Introduced in R2018a

See Also