[Top][All Lists]

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

Re: how to make plot's y axis range larger?

From: Joao Cardoso
Subject: Re: how to make plot's y axis range larger?
Date: Wed, 01 Mar 2000 03:04:00 +0000

Shih Lin wrote:
> Dear octave expert:
>    when I tried sinc(x) , -10<x<10, , the y value near x=0 was be trancated,
> (no show to -1 or 1), how do I make it visible?,'

does "NaN" means something to you? It means "Not A Number", and you can
get it, e.g.,  when you divide a zero by zero, so sin(0)/0 gives a NaN,
that gnuplot can't plot.

To "avoid" it, avoid the use of '0', as in  x=linspace(-10,10,100);
y=sin(x)./x; plot(x,y) or, better, use the function 'sinc',

Eric, you should do your homework alone :-)


PS-Eric, why does sin(x)./x does a different plot than sinc(x)?

> need and thanks your tech help
> Eric
> ______________________________________________________
> Get Your Private, Free Email at
>   ------------------------------------------------------------------------
>              Name: f3.eps
>    f3.eps    Type: Postscript Document (application/postscript)
>          Encoding: base64

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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