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

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 help >> 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)と等価dす.

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

参照

  • eye — 単位行列
  • zeros — ゼロからなる行列
<< 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:
Thu Mar 03 11:00:51 CET 2011