且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在gnuplot中连接字符串?

更新时间:2023-02-17 09:42:18

给出两个字符串

String1 = 'This is ' 
String2 = 'a mouse.'

要连接它们,您可以使用其中一个

To concatenate them, you can use either

String3 = String1.String2

或更灵活:

String3 = sprintf("%s%s", String1, String2)

键入help stringhelp sprintf以获得有关这两种方法的更多信息.

type help string or help sprintf for more information about the two methods.