help-octave
[Top][All Lists]
Advanced

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

Re: problem with the polar commend


From: Doug Stewart
Subject: Re: problem with the polar commend
Date: Mon, 7 Jan 2019 17:35:31 -0500



On Mon, Jan 7, 2019 at 4:51 PM insafba <address@hidden> wrote:
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)) ./
This should be a minus        ^

 
(2*(cos(theta)).^2.*(sin(theta)).^2));

polar(theta, r)



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html




--
DASCertificate for 206392


reply via email to

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