ExampleData

ExampleData["type"]

gives a list of names of examples of the specified type.

ExampleData[{"type","name"}]

gives the default form of the named example of the specified type.

ExampleData[{"type","name"},"elem"]

gives the specified element or property of an example.

Details

  • Typical types include:
  • "AerialImage"sample aerial photography image
    "Audio"sample audio clips
    "ColorTexture"sample color texture
    "Dataset"sample structured dataset
    "Geometry3D"3D geometry data for models and shapes
    "LinearProgramming"linear programming problem
    "MachineLearning"machine learning training and testing data
    "Matrix"sparse or dense matrix
    "NetworkGraph"empirical graphs and networks
    "Sound"sample audio clips
    "Statistics"statistical datasets
    "TestAnimation"test animation for image processing
    "TestImage"test image for image processing
    "TestImage3D"test 3D volume for image processing
    "TestImageSet"test image collections
    "Text"sample text piece
    "Texture"sample texture
  • ExampleData[{"type","name"},"Properties"] gives a list of the elements or properties available for a particular example.
  • In addition to elements specific to the content of an example, the following properties are typically included:
  • "Image"basic visual representation of the example
    "Name"English name
  • ExampleData[] gives a list of names of types of examples.

Examples

open allclose all

Basic Examples  (4)

A standard image processing test image:

3D geometry for a space shuttle:

The first 400 characters of the text of the US Declaration of Independence:

A list of example texture images:

Scope  (42)

Image Data  (8)

An aerial image of the Pentagon:

2D Fourier transform of raw image data:

Wood texture:

Color wood texture:

A color test image:

A monochrome test image:

Animation Data  (3)

Find the names of the first four frames:

Extract the frames:

Image Collections  (2)

Images in a collection:

All image collections:

3D Geometry  (3)

The Stanford bunny:

Get a list of possible properties:

Geometric representation:

Bounds:

Surface area:

3D Image Data  (2)

Example of a 3D image:

Properties for 3D images:

Numerical Data  (5)

Count the number of test matrices:

Example of a sparse matrix:

Properties for example matrices:

Find a complete linear programming example:

Plot the constraint matrix for a linear programming example:

Statistical Data  (6)

Find the first 10 statistical datasets available:

List of available properties for a dataset:

The first 5 rows of this dataset contain brain and body weights of various animals:

Alternatively, use the "DataElements" property:

Column types are either "Numeric" or "Categorical":

Description for Old Faithful dataset:

Column headings:

Column descriptions:

Dimension and number of observations for the dataset:

Create a SmoothHistogram of a dataset:

Compute descriptive statistics of numerical entries:

Choose numeric columns:

Calculate Mean and StandardDeviation for each characteristic:

Text  (8)

Find the first 10 example texts available:

First 400 characters of Darwin's On the Origin of Species:

List of properties:

Author and title:

Number of words in On the Origin of Species:

Use "FormattedText" to get a string with line breaks etc.:

Generate a formatted notebook of the US Declaration of Independence:

Generate "Latinized text":

Audio  (3)

Properties of an audio sample:

Import an audio sample:

Get the audio description:

All audio samples:

Sound  (2)

"Houston, we have a problem":

Applications  (5)

The Declaration of Independence, formatted very small:

Recolor a test image:

Make a contour plot of gray levels in a test image:

Generate 3D graphics containing multiple space shuttles:

Plot the word frequency distribution for On the Origin of Species:

Neat Examples  (3)

Make a 3D graphic from a test image:

Generate a vector field from the normals for a 3D object:

Hamlet's soliloquy, with repeated words successively larger:

Wolfram Research (2007), ExampleData, Wolfram Language function, https://reference.wolfram.com/language/ref/ExampleData.html (updated 2016).

Text

Wolfram Research (2007), ExampleData, Wolfram Language function, https://reference.wolfram.com/language/ref/ExampleData.html (updated 2016).

CMS

Wolfram Language. 2007. "ExampleData." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/ExampleData.html.

APA

Wolfram Language. (2007). ExampleData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExampleData.html

BibTeX

@misc{reference.wolfram_2024_exampledata, author="Wolfram Research", title="{ExampleData}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/ExampleData.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_exampledata, organization={Wolfram Research}, title={ExampleData}, year={2016}, url={https://reference.wolfram.com/language/ref/ExampleData.html}, note=[Accessed: 21-November-2024 ]}