help-octave
[Top][All Lists]
Advanced

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

Re: [slightly OT] urgent help with plot


From: roberto
Subject: Re: [slightly OT] urgent help with plot
Date: Thu, 22 Sep 2005 19:56:38 +0200

On 9/22/05, roberto <address@hidden> wrote:
> On 9/22/05, Javier Arantegui <address@hidden> wrote:
> > El Jueves, 22 de Septiembre de 2005 18:29, roberto escribió:
> >
> > - Which operative system you are using
> debian sarge, kernel 2.6.8-2-386
> > - Version of Octave and Gnuplot
> Octave:
> version 2.1
> Gnuplot:
> Version 4.0 patchlevel 0
> > - Did it plot before?
> yes!
actually the problem seems to be solved but there is another strange
behaviour of this code that has to plot a vector T with respect to a
vector r_up; as you already know vectors' lengths must match but
Octave tells me they don't:
 ###############################################
 clear all
 r_up = linspace(.1,10,5);
 T = [];

 for i = 1:length(r_up)
         [E,c,a,T(i)] = E_X2rad(110,60,r_up(i));
         T = [T T(i)];
 # inserted here just to check output
         fdisp(stdout, T(i));
 end
 plot(r_up,T,'*');
 ###############################################
 but if i look inside T, well it has 6 elements (not 5) and they are

 0.012465  0.306810  0.595773  0.873184  1.277914  1.277914

 as you can see the last one is repeated twice, i do NOT know why...
 so plot cannot plot anything at all
 thank you for any help

 bye




--
roberto



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