problems with the y=0 function

Doug Stewart dastew at sympatico.ca
Mon Jun 2 17:42:52 CDT 2008


alvaro gonzalez wrote:
> Hi .
> my problem is that for programate the line 0 in octave can be this form:
> >y(1000) =0;  the line y=0 be in all range [0:1000], but I like that 
> the line can be in the range 1901:2005 for example, for add to time 
> series up -down the line 0!!,
> How is the form of programate this sequence?.
> Thanks People.
> Alvaro Gonzalez. R
>


x=1900:2005;
y= rand(length(x))-.5
plot(x,y)

Is this what you want?


More information about the Help-octave mailing list