display dataset showing full char entries
이전 댓글 표시
By default, the display function only explicitly displays character array entries in datasets if they have length 10 or less. Is there a way to override this to display character entries with arbitrary length?
채택된 답변
추가 답변 (1개)
Peter Perkins
2012년 6월 19일
Peter, you may find that using a cell array of strings rather than a char matrix gets you what you are looking for:
>> a = ['a ';'abcdefghij ';'abcdefghijklmnopqrstuvwxyz'];
>> b = cellstr(a);
>> x = randn(3,1);
>> dataset(a,b,x)
ans =
a b x
[1x26 char] 'a' 0.86217
[1x26 char] 'abcdefghij' 0.31877
[1x26 char] 'abcdefghijklmnopqrstuvwxyz' -1.3077
카테고리
도움말 센터 및 File Exchange에서 Managing Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!