SETPRINTLIMIT Set Limit For Printing Of Arrays

Section: Input/Ouput Functions

Usage

Changes the limit on how many elements of an array are printed using either the disp function or using expressions on the command line without a semi-colon. The default is set to one thousand elements. You can increase or decrease this limit by calling
  setprintlimit(n)

where n is the new limit to use.

Example

Setting a smaller print limit avoids pages of output when you forget the semicolon on an expression.
--> A = randn(512);
--> setprintlimit(10)
--> A
ans = 
  <double>  - size: [512 512]
 
Columns 1 to 3
  0.87827194243541484   0.45717349512131750   0.74649657410566150  
  0.07282178291600977  -1.27390858045396316   0.27543203641679181  
 -0.40349836816234103   1.88871397674825547  -0.58243517348090912  
  0.37072760094868779
Print limit has been reached.  Use setprintlimit function to enable longer printouts