MATLAB 帮助中心
创建需求集
newReqSet = slreq.new(reqSetName)
newReqSet = slreq.new(reqSetPath)
newReqSet = slreq.new(reqSetName) 在当前工作文件夹中创建具有 reqSetName 指定的名称的需求集 newReqSet。
newReqSet
reqSetName
示例
newReqSet = slreq.new(reqSetPath) 在 reqSetPath 指定的文件夹中创建需求集 newReqSet。
reqSetPath
注意
reqSetPath 指定的文件夹必须在磁盘上存在。
全部折叠
% 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
要创建的需求集的名称,指定为字符向量。
要在其中创建需求集的文件夹,指定为字符向量。
slreq.ReqSet
创建的需求集,指定为 slreq.ReqSet 对象。
在 R2018a 中推出
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处