[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sending Calculated File Names to gnuplot

From: Joe Koski
Subject: Sending Calculated File Names to gnuplot
Date: Mon, 12 Apr 2004 09:56:30 -0600
User-agent: Microsoft-Entourage/

I'm trying to set up a separate standalone loop in Octave that is dedicated
solely to making Adobe Illustrator (gset term aifm) copies of some
multiframe plots. The plot arrangement is the same for each plot page with
three subplots, but the number of plot pages varies with the run. I would
prefer to calculate the file name with a statement such as

   graph_file = (['Mode_',int2str(i),'.ai']);

which gives me the file name that I want. My question: What is the best way
to feed the calculated file name to gnuplot? I've tried "gset output
graph_file" with and without quotes around graph_file. With quotes, it gives
me an output file called graph_file, as expected. Without quotes, Octave
complains. Is there a non-gnuplotism to do this. How about a "sprintf"
workaround? I tried with sprintf, but no cigar, yet.

Joe Koski

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]