Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português -

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

Scilab help >> 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オブジェクト, 文字列
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Mar 03 11:00:59 CET 2011