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

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ヘルプ >> Strings > strcat

strcat

文字列を結合する

呼び出し手順

txt = strcat(strings [,string_added])

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

引数

strings

文字列のベクトルまたは行列

string_added

追加される文字列, デフォルト値は長さ0の文字列 ""

txt

文字列

"flag"

文字列 ("r"は 行列stringsの行の結合, "c"は 行列stringsの列の結合)

説明

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:
Thu Oct 02 13:58:25 CEST 2014