help-octave
[Top][All Lists]
Advanced

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

problem with the polar commend


From: insafba
Subject: problem with the polar commend
Date: Mon, 7 Jan 2019 15:23:09 -0600 (CST)

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/Octave-General-f1599825.html



reply via email to

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