close
In Matlab , there are two method to concatenate string .
Method 1:
we can use strcat() function:
string = strcat(str1 , str2);
the result of string is str1str2.
Method 2:
We can use [ ] to achieve this purpose.
String = [str1 str2]; (It should have a space between str1 and str2).
the result of string is str1str2.
全站熱搜