Main Content

importProfile

Class: slreq.LinkSet
Namespace: slreq

Assign profile to ink set

Since R2022b

Syntax

importProfile(myLinkSet,fileName)

Description

importProfile(myLinkSet,fileName) assigns the profile, fileName, to the link set myLinkSet.

Input Arguments

expand all

Link set, specified as an slreq.LinkSet object.

Profile file name, specified as a string scalar or character vector.

Example: "myProfile.xml"

Examples

expand all

This example shows how to assign a profile to a link set.

Load the myAddRequirements requirement set, which also loads the myAddProfile link set.

rs = slreq.load("myAddRequirements");

Find the myAddProfile link set.

myLinkSet = slreq.find(Type="LinkSet",Description="myAdd");

Assign the profile to the link set.

importProfile(myLinkSet,"myAddLinksProfile2")
fileName = profiles(myLinkSet)
fileName = 1x2 cell
    {'myAddLinksProfile.xml'}    {'myAddLinksProfile2.xml'}

Clear the loaded requirement sets and link sets.

slreq.clear

Tips

  • To assign profiles to requirement sets, use the importProfile method.

Version History

Introduced in R2022b