Scilab-Branch-6.1-GIT
      
      - Scilabヘルプ
 - Elementary Functions
 - Complex
 - Discrete mathematics
 - elementarymatrices
 - Exponential
 - Floating point
 - Integer representation
 - Integers
 - matrixmanipulation
 - matrixoperations
 - searchandsort
 - setoperations
 - Trigonometry
 - Bitwise operations
 - &, &&
 - extraction
 - ind2sub
 - insertion
 - isempty
 - isequal
 - modulo
 - ndims
 - |, ||
 - size
 - sub2ind
 
Please note that the recommended version of Scilab is 2026.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)
参照
- sub2ind — 行列添字を線形添字に変換
 - extraction — 行列およびリストのエントリの展開
 - insertion — 変数への部分的な代入または修正
 
| Report an issue | ||
| << extraction | Elementary Functions | insertion >> |