SHOWCELL & CELL\DISP

버전 1.1.0.1 (8.33 KB) 작성자: Jiro Doke
Displays cell array with long strings in the command window.
다운로드 수: 2.5K
업데이트 날짜: 2016/9/1

라이선스 보기

SHOWCELL Displays cell array with long strings in the command window.
CELL\DISP Overloaded DISP method for cell arrays.
CELL\DISPLAY Overloaded DISPLAY method for cell arrays.

SHOWCELL(A) displays the contents of a cell array A in the command window. It will format the display so that long strings will display appropriately.

Typically, if a cell array contains long strings, it will not display the text:

>> A

A =

[3] 'this is a text.' 'hello'
[4] 'More text' [ 32]
[6] [1x54 char] [ 53]

SHOWCELL will display it properly:

>> showcell(A)
[ 3] 'this is a text.' 'hello'
[ 4] 'More text' [32]
[ 6] 'This is a very long text that may not show up properly' [53]

Acceptable numbers are of class DOUBLE, SINGLE, LOGICAL, UINT8, UINT16, UINT32, UINT64, INT8, INT16, INT32, INT64. Elements other than CHAR or numbers are displayed as the size and name of the object,
e.g. [1x1 struct]

SHOWCELL(A,'option1',value1,...) specifies optional arguments passed in in pairs. Valid options are (abbreviated names accepted):

'spacing' - column spacing. Default is 4 spaces.
'numformat' - number of digits OR format string (see SPRINTF) for numerical values. Default is 5 digits.

Example:
showcell(A, 'spacing', 5);
showcell(A, 'numformat', 3);
showcell(A, 'n', '%0.4f');
showcell(A, 'sp', 2, 'nu', 6);

See also DISP, DISPLAY

인용 양식

Jiro Doke (2024). SHOWCELL & CELL\DISP (https://www.mathworks.com/matlabcentral/fileexchange/9776-showcell-cell-disp), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기
도움

줌: SeisLab 3.01

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.1

Updated license

1.1.0.0

License update

1.0.0.0

Displays multi-dimension cells correctly.