help-octave
[Top][All Lists]
Advanced

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

Re: Plotting Bessel function?


From: Sebastian Schöps
Subject: Re: Plotting Bessel function?
Date: Thu, 9 Jun 2016 12:33:40 -0700 (PDT)

shank1207 wrote
> I have this equation x=2*J1(ka*Sin(theta))/(ka*Sin(theta)) where J1 is the
> bessel function of first kind how do I plot x wrt to theta 0:90 assuming
> ka to be constant?
> Thanks

The octave documentation will help you

http://octave.sourceforge.net/octave/function/besselj.html

and plotting works like this

theta=0:1e-3:pi/2;
plot(theta,sin(theta));

Be careful the sine functions takes theta in radians (e.g. "pi/2" instead of
"90").

Sebastian



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Plotting-Bessel-function-tp4677573p4677574.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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