Function Reference: Volume 3 (P-Z) - The MathWorks - #951

/ 1696


catalogue search
P. 951
P. 952
P. 953
P. 954
P. 955
P. 956
P. 957
P. 958
P. 959
P. 960
P. 961
P. 962
P. 963
P. 964
P. 965
P. 966
P. 967
P. 968
P. 969
P. 970
P. 971
P. 972
P. 973
P. 974
P. 975
P. 976
P. 977
P. 978
P. 979
P. 980
P. 981
P. 982
P. 983
P. 984
P. 985
P. 986
P. 987
P. 988
P. 989
P. 990
P. 991
P. 992
P. 993
P. 994
P. 995
P. 996
P. 997
P. 998
P. 999
P. 1000


See other catalogues for The MathWorks

Text version of the page
strvcat
Purpose Syntax
Description
Concatenate strings vertically
S = S =
strvcat(t1, t2, t3, ...) strvcat(c)
S = strvcat(t1, t2, t3, ...) forms the character array S containing the text strings (or string matrices) t1,t2,t3,... as rows.
Spaces are appended to each string as necessary to form a valid matrix. Empty arguments are ignored.
S = strvcat(c) when c is a cell array of strings, passes each element of c as an input to strvcat. Empty strings in the input are ignored.
If each text parameter, ti, is itself a character array, strvcat appends them vertically to create arbitrarily large string matrices.
The command strvcat ('Hello' ,'Yes') is the same as [ 'Hello'; 'Yes '], except that strvcat performs the padding automatically.
Remarks Examples
t1 = S1 = S1 =
'first'; t2 = 'string'; t3 = 'matrix'; t4 = 'second'; strvcat(t1, t2, t3) S2 = strvcat(t4, t2, t3)
S2 =
second string matrix
first
string
matrix
S3
strvcat(S1, S2)
S3 =
first
string
matrix
second
string
2-3235

pageCatalog pdf di En 2012-06-22-01