okomarov/tableutils

版本 2.1.0.0 (48.0 KB) 作者: Oleg Komarov
Fixes some methods of the table() class and extends it with additional features
233.0 次下载
更新时间 2017/2/15

Description
This set of Matlab functions fixes some methods of the table() class and extends it with additional features.
Installation

Unzip the archive;
With Matlab, cd into the unzipped folder
run install_tableutils

WARNING: requires write permissions to `matlabroot/toolbox/matlab/datatypes/@table`. It overwrites some table methods, listed below, with fixed/enhanced versions. The old table() methods are backed up in its private subfolder and their name is suffixed with Old, e.g. disp.m becomes dispOld.m.

List of features

* disp() - implements a buffered version of the native display method. Now, your pc will not freeze until the dawn of time if you forget a ; in the command window after t = table(1e7,1), which is only a 76 MB variable;
* unstack() - significantly speeds up the native method with a minimalistic change between lines 240 and 250 (original code left commented out);
* varfun() - adds a Name/Value pair to the original method, i.e. 'RenameVariables' - false/true(default). Does not force you to change the variable names as the native version;
* renameVarNames() - new method that renames variable names;
* convertColumn() - new method that changes the class of each column (variable);
* classVarName - new method that returns the class name of each column (variable).

Other methods

The following functions do not get copied over to the native @table folder and serve as general purpose utilities for the new table methods.

* isrowchar() - Determines whether input is a string (1 by N char);
* in() - Test for inclusion, i.e. [],[),(] or (), within some bounds;
* xstr2num() - Converts the digit-part from an 'xNumber' to a numeric type. Especially useful to quickly recover the original values after unstacking a table, i.e. x32443 becomes 32443.

For detailed descriptions, syntax and examples, see the help within each .m file.

引用格式

Oleg Komarov (2024). okomarov/tableutils (https://github.com/okomarov/tableutils), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Tables 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!

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

版本 已发布 发行说明
2.1.0.0

minor update to description

2.0.0.0

Edited description. Complete change of the installation process

1.3.0.0

Updated description

1.2.0.0

Updated description

1.1.0.0

Updated description

1.0.0.0

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