help-octave
[Top][All Lists]

## Re: Plotting problem

 From: David Bateman Subject: Re: Plotting problem Date: Mon, 28 May 2007 10:09:16 +0200 User-agent: Thunderbird 1.5.0.7 (X11/20060921)

```asha g wrote:
> 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
This code isn't self-contained.. I tried with Octave 2.9.12 with the code

hold off;
for n = [1000, 10000, 25000]
Z = linspace(0,n,n);
x = linspace (0,1,n);
plot (x,Z);
hold on;
end

and I see all three plots. I have no means of testing 2.1.50 and
strongly suggest you upgrade to at least the 2.1.73 version of
sourceforge. As I can't reproduce this issue, I can only think that it
is fixed and do nothing about it...

D.

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