WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

Unitize [x]

gives 0 when x is zero, and 1 when x has any other numerical value.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Applications  
See Also
Related Guides
History
Cite this Page

Unitize [x]

gives 0 when x is zero, and 1 when x has any other numerical value.

Details

Examples

open all close all

Basic Examples  (2)

Convert numerical values to zero or one:

Replace values in a matrix with zeros or ones:

Show a plot that emphasizes structure:

Applications  (1)

Determine if a sparse matrix is structurally symmetric:

See Also

UnitStep   KroneckerDelta   Boole   Sign   DiracDelta   Clip

Wolfram Research (2007), Unitize, Wolfram Language function, https://reference.wolfram.com/language/ref/Unitize.html.

Text

Wolfram Research (2007), Unitize, Wolfram Language function, https://reference.wolfram.com/language/ref/Unitize.html.

CMS

Wolfram Language. 2007. "Unitize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Unitize.html.

APA

Wolfram Language. (2007). Unitize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Unitize.html

BibTeX

@misc{reference.wolfram_2025_unitize, author="Wolfram Research", title="{Unitize}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Unitize.html}", note=[Accessed: 16-November-2025]}

BibLaTeX

@online{reference.wolfram_2025_unitize, organization={Wolfram Research}, title={Unitize}, year={2007}, url={https://reference.wolfram.com/language/ref/Unitize.html}, note=[Accessed: 16-November-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /