Updated 29 Jun 2016
This is a set of convenience functions for plotting and manipulating high-dimensional data:
1.) plot_coords.m. The function takes in a number-of-observations by number-of-dimension matrix and projects it onto (up to) 3 dimensions.
2.) trajectory_plotter.m. The function takes in a series of matrices (of high-dimensional coordinates) and creates a beautiful spinning animation of the trajectories evolving over time, projected onto 3d space.
3.) vals2colors.m. Returns a set of (R,G,B) values that reflects a given set of scaler values. This is useful for creating colorized scatterplots, and can also be passed into plot_coords.m.
4.) hyperalign.m. Takes a series of high-dimensional trajectories and computes the affine transformations needed to bring the trajectories into the closest alignment. Both the aligned trajectories and the transformations are returned.
5.) linspecer.m. This file is included for convience; the original version may be found here: http://www.mathworks.com/matlabcentral/fileexchange/42673
Jeremy Manning (2023). Hyperplot Tools (https://www.mathworks.com/matlabcentral/fileexchange/56623-hyperplot-tools), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization >
- Sciences > Neuroscience > Frequently-used Algorithms >
Inspired by: rgb.m, Beautiful and distinguishable line colors + colormap
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.
more bug fixes
Updated the hyperalignment function to more conveniently deal with mismatched sizes and numbers of dimensions.
Added support for cell arrays in plot_coords (makes it possible to create multiple plots at once).