Main Content

# more

## 语法

``more on``
``more off``
``more(n)``
``A = more(___)``

## 说明

``more on` 可启用 MATLAB® 命令行窗口的分页输出。启用分页时，MATLAB 一次显示一页输出。 要前进到下一页输出，请按空格键。要前进到下一行输出，请按 Return 键。要停止显示当前输出，请按 Q 键。不要使用 Ctrl+C 退出 `more`，否则 MATLAB 会返回错误。`

``more off` 可禁用命令行窗口的分页输出。默认情况下，分页处于禁用状态。`

``more(n)` 启用分页并将页面长度设置为 `n` 行。默认情况下，一页的长度等于 MATLAB 命令行窗口中可显示的行数。如果将页面长度设置为特定值，MATLAB 会将该值设为页面大小，无论命令行窗口大小如何。 要恢复默认页面长度，请运行命令 `more off`，然后运行命令 `more on`。`

``A = more(___)` 以行数形式返回当前页面大小。您可以将此语法与上述语法中的任何输入参量结合使用。`

## 示例

```more on help plot```
``` plot Linear plot. plot(X,Y) plots vector Y versus vector X. If X or Y is a matrix, then the vector is plotted versus the rows or columns of the matrix, whichever line up. If X is a scalar and Y is a vector, disconnected line objects are created and plotted as discrete points vertically at X. plot(Y) plots the columns of Y versus their index. If Y is complex, plot(Y) is equivalent to plot(real(Y),imag(Y)). --more--```

`previousSize = more(5)`
```previousSize = 9```

```more on help plot```
```plot Linear plot. plot(X,Y) plots vector Y versus vector X. If X or Y is a matrix, then the vector is plotted versus the rows or columns of the matrix, whichever line up. If X is a scalar and Y is a vector, disconnected line objects are created and plotted as discrete points vertically at --more--```

```more(previousSize) help plot```
``` plot Linear plot. plot(X,Y) plots vector Y versus vector X. If X or Y is a matrix, then the vector is plotted versus the rows or columns of the matrix, whichever line up. If X is a scalar and Y is a vector, disconnected line objects are created and plotted as discrete points vertically at X. plot(Y) plots the columns of Y versus their index. If Y is complex, plot(Y) is equivalent to plot(real(Y),imag(Y)). --more--```

## 提示

• 要查看 `more` 的状态，请键入 `get(0,'More')`。MATLAB 返回 `on``off`，指示是启用还是禁用分页输出。