help-octave
[Top][All Lists]
Advanced

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

simple question about plotting


From: John W. Eaton
Subject: simple question about plotting
Date: Wed, 20 Jan 1999 11:27:55 -0600 (CST)

On 20-Jan-1999, Vitaliy A Repin <address@hidden> wrote:

| Hello!
| 
| What should I do if I want to plot special function, such as besselj(1,x)?
| Should I do something like the following:
| 
| while (x<8)
| Y(i)=besselj(1,x);
| X(i)=x;
| x=x+.1;
| i=i+1;
| endwhile;
| 
| plot (X,Y)
| 
| ?

  x = (0:0.1:8)';  # or use linspace()
  plot (x, besselj (1, x));

jwe




reply via email to

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