imat_shp/setdef


Purpose

Set default attributes for shape creation.

Syntax

setdef(s,'Attrib1',Value1,...)
setdef(s,0)

Description

SETDEF is used to change the default attributes of IMAT Shapes (i.e., the attributes set by the imat_shp constructor function). The first argument to SETDEF must be an imat_shp variable (to cause MATLAB to call the correct version of SETDEF), but its value does not matter. For example, you can use the syntax setdef(imat_shp,...)

In the first form, you can provide any arguments that would be acceptable to the set function for a single mode. These attributes will be used for future imat_shp variables created by the imat_shp constructor.

The second syntax setdef(s,0) restores all attributes to their original values. The original default attributes are listed in the attribute reference section.

Examples

>> setdef(imat_shp, 'damping', 0.01);

See Also

imat_shp/get, imat_shp/set