help-octave
[Top][All Lists]
Advanced

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

Re: Put fitting results/parameters on the plot/graph?


From: Robert A. Macy
Subject: Re: Put fitting results/parameters on the plot/graph?
Date: Tue, 04 Oct 2005 10:14:51 -0700

use this form...

y1=min(variable);y2=max(variable);
cmdstr=(sprintf("gset yrange [%f:%f]\n",y1,y2);
eval(cmdstr);

needs to have a command string approach to do those gset
commands.

             - Robert -

On Tue, 4 Oct 2005 11:59:18 -0500
 "Sun, Mingzhai" <address@hidden> wrote:
> Hi, 
>  The problem I have is the following:
> 
>  for i=1:10
>   output_filename=["result", i, ".ps"]
>   gset output output_filename #Here is one
> problem!!!!!!!!
>   gset terminal postscript
>   gset label "i=%g", i at graph 0, 0.2 #Another
> problem!!!!!!!
>   grid on
>   plot(x, y)
>  end
> 
> As I indicated above, there are two problems. 
> 1. I can not change the output file name as the loop goes
> on. Actually 
> what I really got is: "output_filename". What I really
> want is to have
> file names 1.ps, 2.ps etc. 
> 2. I want to put the i's value on the graph, so that I
> can which i value 
> the graph is corresponding to. But octave told me that
> "i" is not undefined
> variable.
> 
> I searched using google, but I could not get the solution
> for these two
> problems. 
> 
> Any suggestions?
> Thanks in advance.
> 
> Ming
> 



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

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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