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

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

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

Scilabヘルプ >> Strings > strcat

strcat

文字列を結合する

呼び出し手順

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

パラメータ

vector_of_strings

文字列ベクトル

string_added

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

txt

文字列

"flag"

文字列 ( "r" は行行列を返し, "c" は列行列を返します)

説明

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

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

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

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

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

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")

参照

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

Copyright (c) 2022-2024 (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:
Fri Apr 11 14:18:58 CEST 2014