table2char(data,var​argin)

버전 1.7.0.0 (13.3 KB) 작성자: David J. Mack
Converts a table or dataset to a formatted character matrix.
다운로드 수: 180
업데이트 날짜: 2017/9/7

라이선스 보기

Helper function which converts a table/dataset to a compactly formatted character representation (in analogy to NUM2STR). It also makes the table more human readable by only showing the relevant digits, removing unnecessary zeros, the boldfont control commands added in the TABLE display and more.
The function can handle multi-dimensional columns of many types. The string representation is useful for storing the table in a text file or appending it to other text data (e.g. as UserData in a figure).

인용 양식

David J. Mack (2024). table2char(data,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/58951-table2char-data-varargin), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

- [MOD] Major code mod. Outsourced several routines to sub-functions to make the code more maintainable. Changed the style to adhere to Matlab Code Rules.
- [FIX] Error when a variable name is shorter than its unit.

1.6.0.0

[FIX] Error when printing row names & units

1.5.0.0

[FIX] Error for columns containing only 1 finite negative and otherwise NaNs.

1.4.0.0

[FIX] Rounding to one problem.
Added the updated file.

1.3.0.0

[ADD] Added the optional input 'AddUnits' to specify if the variables' units should be added to the output.

1.2.0.0

Corrected a typo.
Forgot to update the file.
FIX: Further fix for the rounding to zero problem.
FIX: Disappearing digits when rounding to a column's precision increased the number of integer digits.

1.1.0.0

Now shows if a value is 0 after rounding to the column's precision.

1.0.0.0