importProfile
类: slreq.LinkSet
命名空间: slreq
语法
importProfile(myLinkSet,fileName)
输入参数
myLinkSet
— 链接集
slreq.LinkSet
对象
链接集,指定为 slreq.LinkSet
对象。
fileName
— 配置文件名
字符串标量 | 字符向量
配置文件名,指定为字符串标量或字符向量。
示例: "myProfile.xml"
示例
将配置文件分配给链接集
此示例显示如何将配置文件分配给链接集。
加载myAddRequirements
需求集,它还会加载myAddProfile
链接集。
rs = slreq.load("myAddRequirements");
找到myAddProfile
链接集。
myLinkSet = slreq.find(Type="LinkSet",Description="myAdd");
将配置文件分配给链接集。
importProfile(myLinkSet,"myAddLinksProfile2")
fileName = profiles(myLinkSet)
fileName = 1x2 cell
{'myAddLinksProfile.xml'} {'myAddLinksProfile2.xml'}
清除已加载的需求集和链接集。
slreq.clear
提示
要将配置文件分配给需求集,请使用
importProfile
方法。
版本历史记录
在 R2022b 中推出
另请参阅
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)