Main Content

importProfile

Class: slreq.LinkSet
Package: slreq

Assign profile to ink set

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 = 1×2 cell
    {'myAddLinksProfile.xml'}    {'myAddLinksProfile2.xml'}

Tips

Version History

Introduced in R2022b