Navigation

Operators and Keywords

Function List:

C++ API

Function File: nvec = size (q)

Function File: n = size (q, dim)

Function File: [nx, ny, ...] = size (q)

Return size of quaternion arrays.

Inputs

q
Quaternion object.
dim
If given a second argument, size will return the size of the corresponding dimension.

Outputs

nvec
Row vector. The first element is the number of rows and the second element the number of columns. If q is an n-dimensional array of quaternions, the n-th element of nvec corresponds to the size of the n-th dimension of q.
n
Scalar value. The size of the dimension dim.
nx
Number of rows.
ny
Number of columns.
...
Sizes of the 3rd to n-th dimensions.

Package: quaternion