moveUp
类: slreq.Justification
命名空间: slreq
语法
tf = moveUp(jt)
输入参数
jt
— 申述
slreq.Justification
申述,指定为 slreq.Justification
对象。
输出参量
tf
— 粘贴成功状态
0
| 1
粘贴成功状态,以数据类型为 logical
的 0
或 1
返回。
示例
上移申述
此示例显示如何在层次结构中上移申述。
加载描述巡航控制系统的crs_req_justs
需求文件,并将其分配给变量。找到索引为 5.3
的申述。
rs = slreq.load('crs_req_justs'); jt1 = find(rs,'Type','Justification','Index','5.3');
将申述在层次结构中上移一个位置。通过检查成功状态、tf1
和索引来确认移动。
tf1 = moveUp(jt1)
tf1 = logical
1
jt1.Index
ans = '5.2'
找到索引为 5.1
的申述。此申述已处于层次结构中的顶级,无法进一步上移,您可以通过尝试将其上移来验证这一点。通过检查成功状态、tf2
和索引来确认移动失败。
jt2 = find(rs,'Type','Justification','Index','5.1'); tf2 = moveUp(jt2)
tf2 = logical
0
jt2.Index
ans = '5.1'
清理
清除打开的需求集和链接集,并关闭打开的模型而不保存更改。
slreq.clear;
bdclose all;
版本历史记录
在 R2020b 中推出
另请参阅
moveDown
| copy
| move
| slreq.Justification
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)