필터 지우기
필터 지우기

How to read or view vert long matrix in the Command Window?

조회 수: 4 (최근 30일)
CL
CL 2022년 10월 27일
댓글: John D'Errico 2022년 12월 29일
I have a matrix of size 10,000 x 4 or longer. When I display this matrix in the Command Window I only get to see perhaps the last few thousands rows of data and the Command Window wouldn't allow me to scroll further up to view the rest of the rows that come before that. My only way to get around it is to view the rows by range:
output(1:50,1:4) % view the first 50 rows of all 4 columns
output(51:100,1:4) % view the next 50 rows
output(101:150,1:4) % so on and so forth ... for 200 times
Is there any build-in function or setting that help us to view or scroll through long matrix easier?
  댓글 수: 1
Karim
Karim 2022년 10월 27일
You can look at the matrices in the variables window. To do this:
  1. create the matrix (e.g. bla = rand( 10000,4) )
  2. double click on the variable in the workspace (in this example bla)
  3. this wil open the variables menu, here you can scroll trough the complete matrix

댓글을 달려면 로그인하십시오.

답변 (1개)

Voss
Voss 2022년 12월 29일
You can go to Preferences > Command Window and increase the "Number of lines in command window scroll buffer".
  댓글 수: 1
John D'Errico
John D'Errico 2022년 12월 29일
While allowing the command window to go back a long way is the correct choice (and what I do) you can also use the more command.
So by typing
more on
in the command window, it allows you to step through each page of your array.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by