Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2023.1.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Strings > strcat

# strcat

### 呼び出し手順

```txt = strcat(strings [,string_added])

txt = strcat(strings [,string_added, ["flag"]])```

strings

txt

"flag"

### 説明

`txt = strcat(strings)`は文字列を結合します: `txt = strings(1) + ... + strings(n)`.

`txt = strcat(strings, string_added)`は, `txt = strings(1) + string_added + ... + string_added + strings(n)` を返します.

プラス記号の動作は同じです: `"a"+"b"``strcat(["a","b"])`と同じです.

`strings` の大きさが1の場合, `txt = strings(1)`を返します.

`strcat('A','B')``'A'`を返し, `strcat(['A','B'])`のように`'AB'` とはなりません.

`strings`が文字列の行列の場合, `strcat(strings,"",'r')` は文字列の行ベクトルを返します. この行ベクトルのエントリは行結合の毛化です.文字列の列ベクトルを返します. この列ベクトルのエントリは列結合の結果です.

### 例

```strcat(string(1:10),',')
strcat(["a","b"])
strcat(["a","b"],'|')
strcat('A')
strcat('A','B')
strcat(['A','B'])
strcat(['A','B'],'')

m =["a" "b" ; "c" "d"];
strcat(m, "r")
strcat(m, "", "r")
strcat(m, "", "c")

strcat(m, "_and_", "r")
strcat(m, "_and_", "c")```

### 参照

• string — 文字列に変換
• strings — Scilabオブジェクト, 文字列
 Report an issue << sci2exp Strings strchr >>

 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:Wed Apr 01 10:25:04 CEST 2015