Skip to Main Content Skip to Search
Product Documentation

sign - Perform signum function on array

Syntax

c = sign(a)

Description

c = sign(a) returns an array c the same size as a, where each element of c is

The elements of c are of data type int8.

sign does not support complex fi inputs.

  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS