CELL2MD: Save a cell array to file as a nicely formatted markdown table

版本 1.0.0.0 (3.2 KB) 作者: Bob Spunt
Saves a cell array to file as a nicely formatted markdown table
270.0 次下载
更新时间 2016/2/3

Save a cell array to file as a nicely formatted markdown table.
USAGE: cell2md(X, varargin)

__________________________________________________________________________
INPUTS

X: cell array to write (can be numeric or char array, in which case it will be converted to a cell array)

VARARGIN (optional arguments entered as "name,value" pairs):

outfile - name for output file (default: cell2md_YYYY_MM_dd)
hdrnames - name for column headers (default: first row of X)
alignment - horz alignment for columns (can be 1x1 char to use same alignment for all columns, or 1 x size(X,2) cell array to use column-specific alignments)

__________________________________________________________________________
EXAMPLE USAGE
Save with default filename and alignment with column headers A, B, C

X = num2cell(rand(10, 3));
cell2md(X, 'hdr', {'A' 'B' 'C'});

引用格式

Bob Spunt (2024). CELL2MD: Save a cell array to file as a nicely formatted markdown table (https://github.com/spunt/cell2md), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.0.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库