Download Gauss 11 User Manual

Transcript
GAUSS User Guide
y = 0 $+ "caterpillar";
The result will be a 1×1 matrix containing ‘caterpil’.
y = zeros(3,1) $+ "cat";
The result will be a 3×1 matrix, each element containing ‘cat’.
If we use the y created above in the following:
k = y $+ "fish";
The result will be a 3×1 matrix with each element containing ‘catfish’.
If we then use k created above:
t = "" $+ k[1,1];
The result will be a string containing ‘catfish’.
If we used the same k to create z as follows:
z = "dog" $+ k[1,1];
The resulting z will be a string containing ‘dogcatfish’.
String Array Concatenation
$| Vertical string array concatenation
7-18