|
From: ZhiGang Q. <zq...@cs...> - 2006-07-13 23:17:59
|
thank you very much.:)
I have another question ,
How can I run a shell command and return its result?
for example:
-----------------------------------------
pre_number =3D 2
read(n) =3D sprintf(" sed -n '%dp' b.txt ",n)
execmd=3D read(pre_number)
tmp =3D ` execmd `
#tmp =3D ` sed '2d' b.txt `
-----------------------------------------
error code is:
"ploter.plt", line 8: constant expression required
can you give me a tip?
On 7/12/06, Hans-Bernhard Br=F6ker <br...@ph...> wrote:
> ZhiGang Qi wrote:
>
> > I want plot a data file by using another data file as the line style.
>
> Not any better than you could use two columns from different files as
> the x and y data for a single curve. You have to *join* those files
> first. See the 'paste' or 'join' commands if you're on Unix or
> something like it.
>
> Once that's done, you'll need the upcoming version 4.2 to get control
> over line color from a data column.
>
>
|