help-octave
[Top][All Lists]
Advanced

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

Re: Plotting problem


From: asha g
Subject: Re: Plotting problem
Date: Sat, 26 May 2007 08:44:26 -0700 (PDT)

I am sending some of the code that is relevant here.
Please note that it  is computing the values of V at
the higher n. It is simply not plotting it. I am using
Octave 2.1.5 with GNU Plot 4.1

for n = 1: 5000
calling function A
Calling function B
calling function C

if n == 1
z = V;
c = 'r';
elseif n == 1000
z1 = V;
c = 'b';
elseif n == 5000
z2 = V;
c = 'm'; 
end 
end 

hold on 
x = linspace (0,1,N);
X = x/lambda ;
y = z/Vo;
y1 = z1/Vo;
y2 = z2 /Vo;
plot (X,y,'r')
plot (X,y1,'b')
plot(X,y2,'m')
print ('filename.pbm','-dpbm')
hold off  

So when n is increased from 5000 to 25000 
and I try to get at three points, n = 1, n= 10000 and
n = 25000, it is leaving out the n = 10000 plot but it
does calculate the value of V for that. 
INcidentally, I have written this code originally for
MATLAB and could iterate upto very large n without any
problems. 
I will greatly appreciate your help. 
Thanks
Asha 

--- David Bateman <address@hidden> wrote:

> asha g wrote:
> > I am doing an iteration and have a plot with three
> > colors for varying values of n
> >
> > When n= 1:5000
> >
> > When I specify three plots for n = 1, n= 1000 and
> n =
> > 5000, I get all three plots.
> >
> > But when n = 1: 20000
> >
> > When I specify three plots, for n = 1, n = 10000
> and n
> > = 20000
> >
> > I don't get the second plot n = 10000
> >
> > I have tried various values n= 1:30000, n = 1:
> 23000
> >
> > it is the same. 
> >
> > Can someone tell me what is happening and how I
> can
> > get all three colors.
> >
> > Thanks
> >
> > Asha 
> >
> >  
> >    
> >   
> 
> I don't think the above clearly defines the issue.
> Can you please supply
> 
> 1) An example (the the form of self-contained code)
> demonstrating the
> case where it works and the case where it does
> 2) The version numbers of both Octave and gnuplot
> you are useing
> 
> D.
> 
> -- 
> David Bateman                               
> address@hidden
> Motorola Labs - Paris                        +33 1
> 69 35 48 04 (Ph) 
> Parc Les Algorithmes, Commune de St Aubin    +33 6
> 72 01 06 33 (Mob) 
> 91193 Gif-Sur-Yvette FRANCE                  +33 1
> 69 35 77 01 (Fax) 
> 
> The information contained in this communication has
> been classified as: 
> 
> [x] General Business Information 
> [ ] Motorola Internal Use Only 
> [ ] Motorola Confidential Proprietary
> 
> 


 
   
   
   
  Goals too clearly defined can become blinkers. 
  Mary Catherine Bateson 



       
____________________________________________________________________________________Building
 a website is a piece of cake. Yahoo! Small Business gives you all the tools to 
get online.
http://smallbusiness.yahoo.com/webhosting 


reply via email to

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