Scilab 5.3.0
- Scilab Online Help
- Elementary Functions
- Discrete mathematics
- Floating point
- Integer representation
- Trigonometry
- abs
- amell
- and
- &
- binomial
- bitand
- bitor
- bloc2exp
- bloc2ss
- cat
- cell2mat
- cellstr
- char
- cumprod
- cumsum
- delip
- diag
- diff
- dsearch
- exp
- eye
- flipdim
- gsort
- imag
- imult
- ind2sub
- intersect
- inttrap
- isdef
- isempty
- isequal
- isequalbitwise
- isreal
- isvector
- kron
- lex_sort
- linspace
- log
- log10
- log1p
- log2
- logm
- logspace
- lstsize
- max
- maxi
- meshgrid
- min
- mini
- modulo
- ndgrid
- ndims
- nextpow2
- norm
- ones
- or
- |
- pen2ea
- permute
- pertrans
- prod
- rand
- real
- resize_matrix
- setdiff
- sign
- signm
- size
- solve
- sort
- sqrt
- sqrtm
- squarewave
- ssrand
- sub2ind
- sum
- sysconv
- sysdiag
- syslin
- toeplitz
- trfmod
- trianfml
- tril
- trisolve
- triu
- typeof
- union
- unique
- vectorfind
- zeros
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
ind2sub
線形添字を添字付き行列に変換
呼び出し手順
[i1,i2,..] =ind2sub(dims,I) Mi = ind2sub(dims,I)
パラメータ
- dims
ベクトル: 行列の次元
- I
ベクトル: 指定した線形添字
- i1,i2,..
添字値 (
I
と同じ形の行列)- Mi
列に添字値を含む行列.
説明
ind2sub
は指定した配列への添字と
等価な添字値を定義する際に使用されます.
[i1,i2,..] = ind2sub(dims,I)
は配列
i1
, i2
, ... を返します.
この配列には,
大きさdims
の行列に関する添字行列I
の等価な行,列, ... 添字が含まれます.
Mi=ind2sub(dims,I)
は行列
Mi
を返します.
この行列の列は配列
i1(:)
, i2(:)
, ...となります.
例
ind2sub([2,3,2],1:12) [i,j,k]=ind2sub([2,3,2],1:12)
作者
Serge Steer, INRIA
<< imult | Elementary Functions | intersect >> |