[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Put fitting results/parameters on the plot/graph?

**From**: |
Sun, Mingzhai |

**Subject**: |
Put fitting results/parameters on the plot/graph? |

**Date**: |
Tue, 4 Oct 2005 11:59:18 -0500 |

**User-agent**: |
Mutt/1.5.9i |

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
-------------------------------------------------------------

**Put fitting results/parameters on the plot/graph?**,
*Sun, Mingzhai* **<=**