## Introduction

This article describes how to create a *distance matrix*, also known as a *dissimilarity matrix*. A distance matrix is a table that shows the distance between pairs of objects. You can compare variables or the values of up to 100 individual cases.

## Requirements

A data set containing two or more variables of the scale (numeric, ordinal, etc.) to use as inputs to the distance matrix.

## Method

- From the toolbar select
**Create > Correlation > Distance Matrix.** - From the object inspector on the right, select
**Inputs > Compare**and select if you want to compare*variables*or*cases.*For this example, we'll select*variables*. - For
**Inputs > Variables**, select the variables to compare. - Click the Calculate button to generate the distance matrix output.

## Next

How to Create a Correlation Matrix