isdef

Last updated Sun Sep 19 11:54:40 1999


Check if a variable is defined

1. SYNOPSIS

a = isdef(w)

2. DESCRIPTION

This function checks if a variable is defined. With higher version of Matlab, it has become obsolete, as one can use the Matlab function exist.

3. PARAMETERS



w

The output of Matlab function who.



var

A string containing the variable name.

4. RETURNS



a

An array with 1 if the corresponding variable is defined,0 otherwise.

5. AUTHORS

Pierre Jaccard, Geophysical Institute, University of Bergen, 1999