Why won't my computer display the top of the output? Why does it cut if off?

6 ビュー (過去 30 日間)
DJ V
DJ V 2024 年 9 月 19 日
コメント済み: Voss 2024 年 9 月 19 日
The output from this program cuts off the initial data that I instruct it to output. Why is this happening? Note: what is being cutoff is the first output data. Why is this?

採用された回答

Voss
Voss 2024 年 9 月 19 日
編集済み: Voss 2024 年 9 月 19 日
Most likely the number of lines output to the Command Window exceeds the command window scroll buffer, which by default is 5000 lines.
You can increase the command window scroll buffer as follows: On the Home tab, in the Environment section, click Preferences. Select MATLAB > Command Window, and then increase the setting for Number of lines in the command window scroll buffer.
Increasing to 10000 lines will be sufficient to see all the output from this particular script. However, you may consider whether you really need to output entire arrays to the Command Window while the script is running. Maybe just seeing the first 10 rows and last 10 rows is enough, e.g.
pqrAndrSol([1:10 end-9:end],:)
or maybe just seeing the size is enough
size(pqrAndrSol)
or
whos pqrAndrSol
Of course, since it is a script, the variables exist in the workspace it's run in after the script is done running, so at that point you can inspect any variable however you like (outputting all or part of it to the Command Window, viewing it in the Workspace Browser / Variable Viewer, etc.).
  4 件のコメント
Steven Lord
Steven Lord 2024 年 9 月 19 日
If you want to see just the first few or last few rows, the head and tail functions may be of interest.
Voss
Voss 2024 年 9 月 19 日
In R2023a or later.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime Series Events についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by