How to reduce the space among columns in command window?

조회 수: 20 (최근 30일)
Xiaohan Du
Xiaohan Du 2016년 12월 22일
댓글: Xiaohan Du 2016년 12월 23일
Hi all,
I'd like to display a 31 by 31 matrix in command window, MATLAB leaves a lot of space among columns like this:
290 130 4 -80 -164 172 256 46 -38 -122
I'd like to reduce the space among these scalars, for instance, like this:
290 130 4 -80 -164 172 256 46 -38 -122
So I can directly see the pattern of the matrix by displaying it within one screen. How can I do this?
Many thanks!

채택된 답변

Walter Roberson
Walter Roberson 2016년 12월 22일
Unfortunately there is no format setting for that.
For row vectors, I sometimes use mat2str() to get a more compact version.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by