slreq.new
创建需求集
说明
在当前工作文件夹中创建一个需求集newReqSet
= slreq.new(reqSetName
)newReqSet
,其名称由 reqSetName
指定。
示例
创建需求集
% 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
输入参数
reqSetName
— 需求集名称
字符向量
要创建的需求集的名称,指定为字符向量。
reqSetPath
— 需求设置路径
字符向量
创建需求集的文件夹,指定为字符向量。
输出参量
newReqSet
— 已创建的需求集
slreq.ReqSet
对象
创建的需求集,指定为slreq.ReqSet
对象。
版本历史记录
在 R2018a 中推出
另请参阅
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)