PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Mathematics and Algorithms
>
Mathematical Functions
>
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]=
Applications
(1)
SEE ALSO
UnitStep
KroneckerDelta
Boole
Sign
DiracDelta
Clip
MORE ABOUT
Numerical Functions
New in 6.0: Mathematical Functions
RELATED LINKS
Demonstrations with Unitize
(
Wolfram Demonstrations Project
)
New in 6
© 2008 Wolfram Research, Inc.