polar plot of n^2 = 1+g equation

1 次查看(过去 30 天)
Ismita
Ismita 2022-11-19
编辑: VBBV 2022-11-22
polar plot of n^2 = 1+g (g=a/b~10^4) and/ or p^2 = (1-g)/( (1+g)*cos^2(theta)) equations and how can I get a circle from this equation? Thanks
  2 个评论
Ismita
Ismita 2022-11-21
n and p are the unknown unknown variables. Others are known, theta is variable. So to plot n (independent of theta) and p with theta. Thank you

请先登录,再进行评论。

回答(1 个)

VBBV
VBBV 2022-11-22
编辑:VBBV 2022-11-22
About the 2nd equation, you can plot it straightforward by plugging values for variables g and theta
theta = 0:pi/100:2*pi; %
g = -0.5;
p = sqrt(((1-g)/(1+g))*(cos(theta)).^2);
polar(theta,p)

类别

Help CenterFile Exchange 中查找有关 Polar Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by