|
From: <ln...@dr...> - 2007-10-23 20:33:15
|
> On Tuesday 23 October 2007 13:01, ln...@dr... wrote: >> >> My biggest problem for the moment is the following: I did not find any= thing >> useful about 'assignment' in the help file (I have the most recent CVS= version >> of gnuplot, of course). How should I use it then? Is there a configure= -time >> switch needed to compile it into gnuplot? > > No, but it is a very recent feature. > > Peter <pl...@pi...> referred to it as an "assignment feature" b= ecause > the original trial implementation was in the form of a separate functio= n > named assign(). In the end, the same functionality was incorporated by > adding support for two standard operators: =3D and , > Both act as they do in the C language syntax. > > '=3D' is an assignment operator, taking a variable name on the left and > an expression on the right. > > ',' is a serial evaluation operator separating independently evaluatied > expressions. > > Combining these operators allows functions or expressions to have > side effects. In particular, a function or expression evaluation can > have the side effect of storing its result in a named variable. > > An example of using these to track successive data points is provided > in the new demo file data_feedback.dem > http://gnuplot.sourceforge.net/demo_4.3/data_feedback.html > Thanks, Ethan! Now I suppose I have to read a concise book on "C" to familiarise myself = with this syntax :) Levente |