home
发送光标复位
语法
说明
home
将光标移至命令行窗口的左上角。home
还会将命令行窗口中的所有可见文本滚动到视图之外,从而显示为清空屏幕而不删除任何文本。运行 home
命令后,可以使用滚动条查看以前显示的文本。
使用 MATLAB® 代码文件中的 home
始终能在屏幕的同一起始位置显示输出,而不会清空命令行窗口。
示例
将光标移至原位
使用 magic
函数在命令行窗口中创建并显示一个 5
×5
整数矩阵。
magic(5)
ans = 5×5
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
运行 home
函数将显示的矩阵和任何其他可见文本滚动到视图之外,并将光标移至命令行窗口的左上角。
home
使用命令行窗口滚动条向上滚动可查看隐藏的文本。
版本历史记录
在 R2006a 之前推出
另请参阅
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)