imat_fn/setdef


Purpose

Set default attributes for function creation.

Syntax

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

Description

SETDEF is used to change the default attributes of IMAT Functions (i.e., the attributes set by the imat_fn constructor function). The first argument to SETDEF must be an imat_fn 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_fn,...).

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

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

Examples

>> setdef(imat_fn, 'abscissamin', 0, 'abscissainc', 0.1);

See Also

imat_fn/get, imat_fn/set