ecl-logo Documentation

QuantityCoordinatesP

QuantityCoordinatesP[]patt

returns a pattern that matches an Nx2 quantity array.

QuantityCoordinatesP[{xunit,yunit}]patt

additionally requires the units of the item being matched are compatible with specified units.

Details

    Input
    Output

Examples

Basic Examples  (5)

A quantity matrix with any units:

Specify the units:

Returns False if units are not compatible:

Returns False if dimensions are not Nx2:

Unit specification can contain unit strings:

Additional Examples  (1)

Returns False for non-QA inputs: