Home > marsbar > @maroi > binarize.m

binarize

PURPOSE ^

binarize - returns / sets binarize value for object

SYNOPSIS ^

function h = binarize(obj, val)

DESCRIPTION ^

 binarize - returns / sets binarize value for object

 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function h = binarize(obj, val)
0002 % binarize - returns / sets binarize value for object
0003 %
0004 % $Id$
0005 
0006 if nargin > 1
0007   if ~(val == 0 | val == 1)
0008     error('binarize is 0 or 1 flag');
0009   end
0010   obj.binarize = val;
0011   h = obj;
0012 else
0013   h = obj.binarize;
0014 end

Generated on Wed 11-May-2022 16:26:09 by m2html © 2003-2019