Scilab 6.0.1
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
unique
ベクトルまたは行列のユニークなな要素を展開
呼び出し手順
[N ,k] = unique(M) [N ,k] = unique(M, orient)
引数
- M
数値または文字列のベクトルまたは行列
- orient
フラグで以下の値のどれかとなる : 1 または "r", 2 または "c"
- N
- If
orientis not used: Vector of extractedMcomponents sorted in ascending order. - If
orientis used: Matrix of extractedMrows or columns, sorted in lexicographic ascending order.
- If
- k
Vector of indices of first encountered occurences, such that
N(i) = M(k(i))orN(i,:) = M(k(i),:)orN(:,i) = M(:,k(i)).
説明
unique(M) は
Mのユニークなエントリを昇順に
したものを保持するベクトルを返します.
unique(M,"r") または
unique(M,1)は,
Mのユニークな行を
辞書式の昇順にして返します.
unique(M,"c") または
unique(M,2)は
Mのユニークな列を
辞書式の昇順にして返します.
![]() |
例
参照
| Report an issue | ||
| << union | setoperations | signalprocessing >> |
