
From:  Doug Stewart 
Subject:  Re: problem with the polar commend 
Date:  Mon, 7 Jan 2019 17:35:31 0500 
Hello there,
I have a pretty long equation that I want to plot using polar coordinates.
Please see the equation below
<http://octave.1599824.n4.nabble.com/file/t373159/equation_octave.png>
The problem is when I write it in octave and trying to plot it using
polar(theta, r), the figure is empty!! nothing is plotted!
could you please help me with this? thank you so much
here is the code
theta= 0:0.02:2*pi;
r = sqrt(((b^2).*(cos(theta)).^2 + (a^2).*(sin(theta)).^2 
abs((b^2).*(cos(theta)).^2 + (a^2).*(sin(theta)).^2)) ./
(2*(cos(theta)).^2.*(sin(theta)).^2));
polar(theta, r)

Sent from: http://octave.1599824.n4.nabble.com/OctaveGeneralf1599825.html
[Prev in Thread]  Current Thread  [Next in Thread] 