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

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

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

Scilabヘルプ >> Elementary Functions > elementarymatrices > ones

ones

要素が1の行列

呼び出し手順

y=ones(m1,m2,...)

y=ones(x)

y=ones()

引数

x,y

行列

m1, m2,..

整数

説明

要素が1の行列を返します.

ones(m1,m2)

全て1からなる(m1,m2) 行列を返します.

ones(m1,m2,..,mn)

全て1からなる(m1,m2,..,mn) 行列を作成します.

ones(x)

xと同じ大きさで全て1からなる行列を返します.

ones(x)

xsyslin リストの場合でも有効です.

注意

  • ones(3)a=3 を指定した ones(a), すなわち, 3x3 行列ではないことに注意してください!

  • ones() は ones(1,1)と等価です.

  • ones(3,-3) および ones(-3,-3) は 共に空の行列を返します.

ones(3)
ones(3,3)
ones(2,3,2)

参照

  • eye — 単位行列
  • zeros — ゼロからなる行列
Report an issue
<< ndgrid elementarymatrices rand >>

Copyright (c) 2022-2023 (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:
Tue Feb 14 15:10:27 CET 2017