MatStats
"Table" is a class for handling flat data tables together with row and column labels. It provides functions for reading/writing from/to text files, and for quickly displaying in a uitable object. Example:
tab = Table.read('fisherIris.txt');
show(tab);
write(tab, 'tab2.txt');
Several plot functions are overloaded such that row or column labels are automatically added to the plot.
figure;
plot(tab('PetalLength'), tab('PetalWidth'), '*');
It provides facilities to access data using name of columns. It also support basic editing features: concatenation, extraction of sub-tables...
Subtables can be obtained via parens indexing:
tab2 = tab(1:30, :);
Table content can be accessed by curly braces indexing:
firstSpecies = tab{1:5, 'Species'};
Raw numeric data are stored in the 'data' property, and categorical information in the 'levels' field:
petalLength = tab('PetalLength');
petalLength(1:10).data
species = tab.levels{5}
Several functions are available for quick overview of data stored in Table object: summary(), min(), max()...
A "Pca" class is also provided, that allows to quiclky perform principal component analysis and to keep column names in results.
A quick overview of the features is given in the demo script.
More information can be found on the GitHub page of the project: https://github.com/mattools/matStats. A user manual is also provided: https://github.com/mattools/matStats/releases/download/v1.1/matStats-manual-1.1.pdf
Cite As
David Legland (2023). MatStats (https://github.com/mattools/matStats/releases/tag/v1.1.4), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
matStats
matStats/+tblui
matStats/+tblui/+actions
matStats/+tblui/+actions/+analysis
matStats/+tblui/+actions/+edit
matStats/+tblui/+actions/+file
matStats/+tblui/+actions/+plot
matStats/+tblui/+pca
matStats/@Anova
matStats/@CanDisc
matStats/@CanDisc/private
matStats/@LinearDiscriminantAnalysis
matStats/@LinearDiscriminantAnalysis/private
matStats/@Pca
matStats/@Pca/private
matStats/@Table
matStats/@Table/private
matStats/tabstats
demos
demos/kmeans
demos/lda
demos/pca
Version | Published | Release Notes | |
---|---|---|---|
1.1.4 | See release notes for this release on GitHub: https://github.com/mattools/matStats/releases/tag/v1.1.4 |
|
|
1.1.3 | See release notes for this release on GitHub: https://github.com/mattools/matStats/releases/tag/v1.1.3 |
|
|
1.1.2 | See release notes for this release on GitHub: https://github.com/mattools/matStats/releases/tag/v1.1.2 |
|
|
1.1.1.0 | update of property names. Several new features and bug fixes. |
||
1.1.0.0 | add curly braces indexing, fix bugs in Table.read. |
||
1.0.0.0 |