Let's say we have two strings:
String1 = 'This is '
String2 = 'a mouse.'
How can I concatenate these 2 strings to form the string 'This is a mouse.'
in gnuplot?
Given two strings
String1 = 'This is '
String2 = 'a mouse.'
To concatenate them, you can use either
String3 = String1.String2
or a more flexible:
String3 = sprintf("%s%s", String1, String2)
type help string
or help sprintf
for more information about the two methods.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With