Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Arithmetic on datafile plot

1 view
Skip to first unread message

Vivek Shanmuganathan (95410006-BS)

unread,
Feb 10, 1999, 3:00:00 AM2/10/99
to
Hello,

I am using Gnuplot 3.5. I am interested if one do some simple arithmetic
on data files before plotting them. For example, say file1 has two
columns c1 and c2. I would like to plot c1 Vs c2'=f(c2) where f(.) can be
simple constant or variable arithmetic like

c2'(i) = 5*c2(i)
c2'(i) = c1(i)*c2^2
c2'(i) = c2(i) + data1(m)*xxx(i)

where xxx(i) can be a column value from some other data file, and data1(m)
is mth data from some other data file.

Although matlab or octave may be programmed for the purpose, for a
simulation problem I am working on, this kind of facility could be handy
and simple.

--
W i t h R e g a r d s ,

V i v e k . . .
------------------------------------------------------------------------------

0 new messages