DOCUMENTATION CENTER SEARCH
Mathematica
>
Numerical Functions
>
Built-in
Mathematica
Symbol
UnitStep
KroneckerDelta
Boole
Sign
DiracDelta
Clip
See Also »
|
Numerical Functions
New in 6.0: Mathematical Functions
More About »
Unitize
Unitize
[
x
]
gives
0
when
x
is zero, and
1
when
x
has any other numerical value.
MORE INFORMATION
Unitize
[
x
,
dx
]
gives
0
for any
x
with magnitude less than
dx
.
Unitize
[
x
]
gives
0
whenever
x
0
yields
True
.
Unitize
[
x
]
in general works using
PossibleZeroQ
, and can handle numbers represented in symbolic form.
Unitize
has attribute
Listable
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Convert numerical values to zero or one:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
Replace values in a matrix with zeros or ones:
In[1]:=
In[2]:=
Out[2]=
Show a plot that emphasizes structure:
In[3]:=
Out[3]=
SEE ALSO
UnitStep
KroneckerDelta
Boole
Sign
DiracDelta
Clip
MORE ABOUT
Numerical Functions
New in 6.0: Mathematical Functions
New in 6
© 2008 Wolfram Research, Inc.