File Exchange

image thumbnail

Reduce Number of Data Points (shrink_data_set)

version 2.0.1 (176 KB) by Tamas Kis
Reduces the number of data points in a data set to a specified number.

3 Downloads

Updated 27 Mar 2021

From GitHub

View Version History

View license on GitHub

See https://github.com/tamaskis/shrink_data_set-MATLAB or “DOCUMENTATION.pdf” for additional documentation and examples. Examples can also be found in “EXAMPLES.m”.

The "shrink_data_set" function reduces the number of data points in a data set, mainly for efficiency purposes. The function assumes the data set is compiled into a matrix. The organization of the data (i.e. if the variables are separated into rows or columns) can be specified.

This function is especially useful for plotting applications. For example, consider the case where you have a data set of 1000 points that exactly follows a quadratic relation. Plotting the full data set (with 1000 points) will not be visually superior to just plotting 100 uniformly distributed points extracted from the data set. However, plotting the full data set will be computationally much slower.

Cite As

Tamas Kis (2021). Reduce Number of Data Points (shrink_data_set) (https://github.com/tamaskis/shrink_data_set-MATLAB/releases/tag/v2.0.1), GitHub. Retrieved .

Comments and Ratings (1)

Chang hsiung

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!