Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

The `procrustes`

function
analyzes the distribution of a set of shapes using Procrustes analysis.
This analysis method matches landmark data (geometric locations representing
significant features in a given shape) to calculate the best shape-preserving
Euclidian transformations. These transformations minimize the differences
in location between compared landmark data.

Procrustes analysis is also useful in conjunction with multidimensional
scaling. In Example: Multidimensional Scaling there is an observation
that the orientation of the reconstructed points is arbitrary. Two
different applications of multidimensional scaling could produce reconstructed
points that are very similar in principle, but that look different
because they have different orientations. The `procrustes`

function
transforms one set of points to make them more comparable to the other.

The `procrustes`

function
takes two matrices as input:

The target shape matrix

has dimension*X*`n`

×`p`

, where`n`

is the number of landmarks in the shape and`p`

is the number of measurements per landmark.The comparison shape matrix

has dimension*Y*`n`

×`q`

with`q`

≤`p`

. If there are fewer measurements per landmark for the comparison shape than the target shape (`q`

<`p`

), the function adds columns of zeros to, yielding an*Y*`n`

×`p`

matrix.

The equation to obtain the transformed shape, * Z*,
is

$$Z=bYT+c$$ | (15-1) |

where:

is a scaling factor that stretches (*b*> 1) or shrinks (*b*< 1) the points.*b*is the orthogonal rotation and reflection matrix.*T*is a matrix with constant values in each column, used to shift the points.*c*

The `procrustes`

function chooses * b*,

$$\sum _{i=1}^{n}{\displaystyle \sum _{j=1}^{p}{({X}_{ij}-{Z}_{ij})}^{2}}$$

Procrustes analysis is appropriate when all `p`

measurement
dimensions have similar scales. The analysis would be inaccurate,
for example, if the columns of * Z* had different
scales:

The first column is measured in milliliters ranging from 2,000 to 6,000.

The second column is measured in degrees Celsius ranging from 10 to 25.

The third column is measured in kilograms ranging from 50 to 230.

In such cases, standardize your variables by:

Subtracting the sample mean from each variable.

Dividing each resultant variable by its sample standard deviation.

Use the `zscore`

function
to perform this standardization.

Was this topic helpful?