6 functions for generating artificial datasets

6 parameterized functions that generate distinct 2D datasets for Machine Learning purposes.

You are now following this Submission

* twospirals.m generates two classes representing two spirals
* clusterincluster.m generates two circular classes
* corners.m generates four classes, each corresponding to a corner shape pointing towards the center
* halfkernel.m generates two half ellipses, one inside the other
* crescentfullmoon.m generates one circular class and one larger crescent folded around it.
* outlier.m produces 2 large circular classes, and 2 smaller classes of outliers.

Inspired by the following StackOverflow question:
http://stackoverflow.com/questions/16146599/create-artificial-data-in-matlab

Cite As

Jeroen Kools (2026). 6 functions for generating artificial datasets (https://uk.mathworks.com/matlabcentral/fileexchange/41459-6-functions-for-generating-artificial-datasets), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: DBSCAN

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0