| MATLAB Function Reference | ![]() |
Syntax
Y = sign(X)
Description
Y = sign(X)
回傳一個跟陣列 X 同樣大小的陣列 Y,其陣列裡元素的值為:
對於非 0 的複數 X,則 sign(X) = X./abs(X)。
See Also
abs 絕對值與複數值(Complex magnitude)
conj 共軛複數(Complex conjugate)
imag 複數(complex)的虛部(Imaginary part)
real 複數(complex)的實部(Real part)
| shrinkfaces | sin, sinh | ![]() |