Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Elementary Functions > matrixoperations > sign

sign

符号関数

呼び出し手順

X = sign(A)

引数

A

実数または複素数の行列. A may be sparse.

X

実数または複素数の行列

説明

X = sign(A)A(i,j)の符号からなる行列を返します. Aが複素数の場合, sign(A) = A./abs(A) 関数となります.

sign(rand(2,3))
sign(1+%i)
sign(sprand(8,3,0.3,"normal"))

参照

  • abs — 絶対値, 大きさ
  • csgn — 複素数の実部のベクトル符号を返す
  • signm — 行列符号関数

履歴

VersionDescription
6.0 Extension to sparse matrices
Report an issue
<< prod matrixoperations signm >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 23:12:40 CET 2018