Main Content

strcat

串联字符串

描述

示例

newStr = strcat(str1,...,strN) 串联字符串 str1,...,strN

注意

仅在使用 C 语言作为动作语言的 Stateflow® 图中支持运算符 strcat。在使用 MATLAB® 作为动作语言的图中,请使用 plus

示例

全部展开

串联字符串以形成 "Hello, world!"

str1 = "Hello, ";
str2 = "world!";
newStr = strcat(str1,str2);

Stateflow chart that uses the strcat operator in a state.

提示

用单引号或双引号将文字字符串引起来。

版本历史记录

在 R2018b 中推出