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

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ヘルプ >> Elementary Functions > cat

cat

複数の配列を結合する

呼び出し手順

y=cat(dims,A1,A2,...,An)

引数

dims

正の実数スカラー.

A1,A2,..An

スカラー, ベクトル, 行列または多次元配列, またはセル配列. A1,A2,...,Anは (次元dimsを除き)同じ大きさとなります. dims以外のiについて size(A1,i)=size(A2,i)=...=size(An,i) であり, size(A1,dims), size(A2,dims),...,size(An,dims) は異なる数とすることができます.

y

スカラー, ベクトル, 行列またはセル配列, yA1,A2,...,Anと同じ型となります.

説明

y=cat(dims,A1,A2,...,An): y は,入力引数A1,A2,...,An を結合したものとなります.

dims=1の場合, 結合は行方向に行われます.

A1=[1 2 3 ; 4 5 6]; A2=[7 8 9 ; 10 11 12]; y=cat(1,A1,A2) => y=[1 2 3 ; 4 5 6 ;7 8 9; 10 11 12] .

dims=2の場合,結合は入力引数の列方向に行われます,...

A1=[1 2 3;4 5 6]; A2=[7 8 9 ;10 11 12]; y=cat(2,A1,A2) => y=[1 2 3 7 8 9 ; 4 5 6 10 11 12] .

// first example : concatenation according to the rows
dims=1; A1=[1 2 3]; A2=[4 5 6 ; 7 8 9]; A3=[10 11 12]; y=cat(dims,A1,A2,A3)
// second example :  concatenation according to the columns
dims=2; A1=[1 2 3]'; A2=[4 5;7 8;9 10]; y=cat(dims,A1,A2)
// third example : concatenation according to the 3th dimension
dims=3; A1=matrix(1:12,[2,2,3]); A2=[13 14;15 16]; A3=matrix(21:36,[2,2,4]); y=cat(dims,A1,A2,A3)

参照

  • permute — permutes the dimensions of an array
  • matrix — ベクトルまたは行列を異なる大きさの行列に成形する
Report an issue
<< &, && Elementary Functions ind2sub >>

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:
Tue Feb 14 15:10:28 CET 2017