states1 — Initial states for distance calculation n-by-3 matrix of real values | n-by-7 matrix of real values

Initial states for distance calculation, specified as an n-by-3
or n-by-7 matrix of real values. n is the number
of specified states.

For the 2-D state space objects stateSpaceSE2,
stateSpaceDubins, and stateSpaceReedsShepp, each row is of form [x y theta],
which defines the xy-position and orientation angle
theta of a state in the state space.

For the 3-D state space object stateSpaceSE3,
each row is of form [x y z qw qx qy qz], which defines the
xyz-position and quaternion orientation [qw qx qy
qz] of a state in the state space.

The function supports following combinations for distance calculation:

n-to-n — n
number of states in states1 and n number
of states in states2.

For example, distance(space,rand(10,7),rand(10,7))

1-to-n — 1 state in states1 and
n number of states in states2.

For example, distance(space,rand(1,7),rand(10,7))

n-to-1 — n number of states in
states1 and 1 state in states2.

For example, distance(space,rand(10,7),rand(1,7))

Data Types: single | double

states2 — Final states for distance calculation n-by-3 matrix of real values | n-by-7 matrix of real values

Final states for distance calculation, specified as an n-by-3 or
n-by-7 matrix of real values. n is the number of
specified states.

For the 2-D state space objects stateSpaceSE2,
stateSpaceDubins, and stateSpaceReedsShepp, each row is of form [x y theta],
which defines the xy-position and orientation angle
theta of a state in the state space.

For the 3-D state space object stateSpaceSE3,
each row is of form [x y z qw qx qy qz], which defines the
xyz-position and quaternion orientation [qw qx qy
qz] of a state in the state space.

The function supports following combinations for distance calculation:

n-to-n — n
number of states in states1 and n number
of states in states2.

For example, distance(space,rand(10,7),rand(10,7))

1-to-n — 1 state in states1 and
n number of states in states2.

For example, distance(space,rand(1,7),rand(10,7))

n-to-1 — n number of states in
states1 and 1 state in states2.

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.