Scilab 5.4.0
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
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)
は
xがsyslinリストの場合でも有効です.
ones(3) は a=3 を指定した
ones(a), すなわち, 3x3 行列ではないことに注意してください!
ones() は ones(1,1)と等価dす.
例
ones(3) ones(3,3) ones(2,3,2)
| Report an issue | ||
| << ndgrid | elementarymatrices | rand >> |