plotting sinuos curve using matlab

1 次查看(过去 30 天)
fima v
fima v 2017-2-14
回答: fima v 2017-2-14
Hello , i wrote the following code by the known formulla which is attached,but instead of getting the desired sinous shape ,i get a baloon, if any one could tell where did i go wrong . Thanks
*********************
alpha=0.87
tau=1.35
r=1:0.01:1.35;
phi=alpha*sin((log(r)*pi)/(log(tau)));
figure;polarplot(r,phi);
***************************

回答(2 个)

Honglei Chen
Honglei Chen 2017-2-14
looks like it should be
polarplot(phi,r)
instead of
polarplot(r,phi)
HTH

fima v
fima v 2017-2-14
Thank you very much

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by