plotting sinuos curve using matlab
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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);
***************************
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160705/image.jpeg)
0 comentarios
Respuestas (2)
Honglei Chen
el 14 de Feb. de 2017
looks like it should be
polarplot(phi,r)
instead of
polarplot(r,phi)
HTH
0 comentarios
Ver también
Categorías
Más información sobre Language Fundamentals en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!