gset output & filename

View: New views
2 Messages — Rating Filter:   Alert me  

gset output & filename

by mbn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I want to pass to "gset output" a file that I receive in the command line (I run a Octave script), I do something like this:


===========================
file_OUT=argv(2,:);

...

gset output file_OUT

gnuplot> set output file_OUT
                           ^
         line 0: expecting filename
===========================

How can I solve that?

Thanks in advance

Re: gset output & filename

by mbn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nevermind, I found this somewhere else:

eval(sprintf('gset output \"%s\"',file_OUT));