strcat()

Concatenates a string or array and returns a string or an array

Syntax
strcat(A0,A1,A2, ... )

Name Description Type Required
A0,A1,A2,. strings or arrays to be concatenated string, integer/real/complex array yes

Examples

sVar = "RFPower"
sVal = strcat("Variable Value:", sVar)
returns "Variable Value: RFPower"
rA = makearray(1, 1, 2, 3)
strcatRA = strcat(rA, rA)
returns an array (1, 2, 3, 1, 2, 3)
sprintf("%g", strcatRA)
returns "123123"
cA = makearray(2, 1+j*1, 2+j*2, 3+j*3)
strcatCA = strcat(cA, cA)
returns (1+j*1, 2+j*2, 3+j*3, 1+j*1, 2+j*2, 3+j*3)

Notes/Equations
  1. The strcat() function is used to concatenate any number of strings, or arrays of the same type. The arguments must all be of the same type, i.e. if the first argument is a real array, the rest of the arguments to be concatenated must be real arrays as well.
  2. The strcat() function cannot be used to concatenate string arrays.
 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources