Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - Português

Change language to:
English - Français - 日本語 -

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

Manual Scilab >> Cadeias de Caracteres (Strings) > strcat

strcat

concatena strings

Seqüência de Chamamento

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

Parâmetros

vector_of_strings

vetor de strings

string_added

string adicionado, o valor padrão é emptystr ""

txt

string

"flag"

string ( "r" para retornar uma matriz linha, "c" para retornar uma matriz coluna)

Descrição

txt=strcat(vector_of_strings) concatena strings : txt=vector_of_strings(1)+...+vector_of_strings(n)

txt=strcat(vector_of_strings,string_added) retorna txt=vector_of_strings(1)+string_added+...+string_added+vector_of_strings(n).

O símbolo de mais faz o mesmo: "a"+"b" é o mesmo que strcat(["a","b"]).

Se o tamanho de vector_of_strings for um, retorna txt=vector_of_strings(1);

strcat('A','B') retorna 'A' , não 'AB' como strcat(['A','B'])

Exemplos

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

Ver Também

<< str2code Cadeias de Caracteres (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 Jan 26 16:24:42 CET 2011