imat_cs/add


Purpose

Add coordinate systems.

Syntax

cs=add(cs,id,name,color,type,matrix)
cs=cs.add(id,name)
cs=cs.add(id,name,color)
cs=cs.add(id,name,color,type)
cs=cs.add(newcs)

Description

ADD will add a coordinate system or coordinate systems to the IMAT_CS object.

ID is a vector containing the coordinate system IDs. They must be unique.

NAME is a cell array of strings containing the coordinate system names. If not supplied, or it is empty, the default (empty string) will be used.

COLOR is a numeric vector containing the coordinate system colors. If not supplied, or it is empty, the default color of 12 is used.

TYPE is a numeric vector containing the coordinate system types. If not supplied, or it is empty, the default (0 = cartesian) will be used.

MATRIX is a 4x3xN matrix containing the transformation matrices. If not supplied, or it is empty, the default transformation will be used.

An alternate calling sequence is to supply an IMAT_CS object NEWCS to add.

See Also

imat_cs/keep, imat_cs/remove